Skip to content

#d7def2

a pale, vivid blue · cool · closest name: Lavender

RGB
215, 222, 242
HSL
224°, 51%, 90%
CMYK
11, 8, 0, 5
Luminance
0.7310

At a glance

Every number on this page in one read: what #d7def2 is made of, how bright it looks, and which way it leans.

Hex
#d7def2
Hue
224°
blue
Saturation
51%
vivid
Lightness
90%
pale
Brightness
95%
HSV value
Perceived
87%
weighted brightness
Luminance
0.7310
WCAG relative
Temperature
Cool
92/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
15.62:1
Closest name
Lavender
ΔE2000 3.8
Where it sits
Hue224° of 360°
Saturation51%
Lightness90%
Temperature
Warm ← → Cool92% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#d7def2
RGBrgb(215, 222, 242)
HSLhsl(224, 51%, 90%)
CMYKcmyk(11%, 8%, 0%, 5%)
LABlab(88.5 1.5 -10.5)
LCHlch(88.5 10.6 278.0)
OKLCHoklch(0.901 0.028 270.4)
Decimal14147314
Display P3color(display-p3 0.843 0.871 0.949)

Copy-ready code

/* CSS */
color: #d7def2;
background-color: #d7def2;
/* Tailwind (arbitrary) */
class="text-[#d7def2] bg-[#d7def2]"
/* SCSS */
$brand: #d7def2;
/* SwiftUI */
Color(red: 0.843, green: 0.871, blue: 0.949)
/* Android */
Color.parseColor("#d7def2")
/* Flutter */
Color(0xFFD7DEF2)
/* Python / OpenCV (BGR) */
(242, 222, 215)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #d7def2 · 15.62:1
Use #000000AAA at every size.
Aa
White text · 1.34:1
AA fail · AA large fail · AAA fail
Aa
Black text · 15.62:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #d7def2 as text scores 1.34:1 on white and 15.62:1 on black.

Accessibility — WCAG contrast

Aa
#d7def2 on white: 1.34:1
AA ✗ fail · AA-large · AAA
Aa
#d7def2 on black: 15.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D9DFF3
deuteranopia · #D6DDF1
tritanopia · #D1E2E4

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #d7def2 is pinned to step 200; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F4F6FA
#EAEDF6
#d7def2
#AAB9E3
#8096D6
#5673C8
#3C5CB9
#324D9A
#283E7B
#212F5A
#141E38
Base = 200Lightest = 50 · #F4F6FADarkest = 950 · #141E38
:root {
  --brand-50: #F4F6FA;
  --brand-100: #EAEDF6;
  --brand-200: #d7def2;
  --brand-300: #AAB9E3;
  --brand-400: #8096D6;
  --brand-500: #5673C8;
  --brand-600: #3C5CB9;
  --brand-700: #324D9A;
  --brand-800: #283E7B;
  --brand-900: #212F5A;
  --brand-950: #141E38;
  --brand: #d7def2;
  --brand-ink: #000000;
}

Colors that work with #d7def2

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F4F6FA
Tinted page background
Border#C1CCEB
Hairlines and dividers
Muted text#4B5F9B
Captions on the surface
Accent#9E642E
Second voice, not a rival
Dark variant#1F3060
Hover, pressed, headers
Light variant#ECEFF9
Selected rows, tints
Dark surface#141824
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #d7def2

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#F2EBD7
Analogous left#D7EBF2
Analogous right#DDD7F2
Split-complement 1#F2DDD7
Split-complement 2#EBF2D7
Triadic 1#F2D7DE
Triadic 2#DEF2D7
Tetradic#F2D7EB

RGB percentages

Red84.3%
Green87.1%
Blue94.9%

CMYK percentages

Cyan11.2%
Magenta8.3%
Yellow0.0%
Key (black)5.1%

Color previews

#d7def2 text on a black background

contrast 15.62:1

Card sample

#d7def2 text on a white background

contrast 1.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #d7def2;
Background color
Panel with #d7def2 background
background-color: #d7def2;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #d7def2;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(215, 222, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(215, 222, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d7def2;
background: linear-gradient(135deg, #d7def2, #E2D7F2);

Monochromatic scale

Palettes built from #d7def2

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#d7def2 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Very light tints can drop out on uncoated stock; check it at 100% size before signing off.

#d7def2, answered

What color is #d7def2?

#d7def2 is a pale vivid blue, closest to Lavender (ΔE2000 3.8). It sits at 224° on the hue wheel with 51% saturation and 90% lightness, which reads as cool.

What is the RGB value of #d7def2?

rgb(215, 222, 242) — 215 red, 222 green and 242 blue out of 255, or 84.3% / 87.1% / 94.9% by channel.

Is #d7def2 a light or a dark color?

It is a light color. Relative luminance is 0.7310 and perceived brightness is 87%, so black text on it reaches 15.62:1.

Should I use black or white text on #d7def2?

Black. It scores 15.62:1 against #d7def2, versus 1.34:1 for white — AAA at any size.

What is the complementary color of #d7def2?

#F2EBD7 sits directly opposite on the wheel. Softer options are the split-complements #F2DDD7 and #EBF2D7, which give the same contrast with far less vibration.

What colors go well with #d7def2?

For interface work: #F4F6FA as the surface, #C1CCEB for borders, #4B5F9B for secondary text, #9E642E as an accent and #1F3060 for hover and pressed states. For a palette, the analogous pair #D7EBF2 and #DDD7F2 stays calm, while #F2EBD7 is the loudest partner.

What is #d7def2 in CMYK for printing?

cmyk(11%, 8%, 0%, 5%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #d7def2 warm or cool?

Cool — it scores 92 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DAD7F2; nudged cooler, #D6E3F3.

Work with #d7def2 in the Color Lab