#2D406F#2D406F

#2D406F is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.0% C 0.084 H 265.9°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#2D406F
RGBrgb(45, 64, 111)
HSLhsl(223, 42%, 31%)
HSVhsv(223, 59%, 44%)
CMYKcmyk(59.5%, 42.3%, 0%, 56.5%)
CIE-LABlab(27.77, 8.01, -29.56)
CIE-LCHlch(27.77, 30.63, 285.15°)
OKLaboklab(38.01% -0.006 -0.0839)
OKLCHoklch(38.01% 0.084 265.9)
XYZxyz(5.7839, 5.3719, 15.7679)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D406F #6F5C2D
analogous
#2D616F #2D406F #3B2D6F
triadic
#2D406F #6F2D40 #406F2D
tetradic
#2D406F #6F2D61 #6F5C2D #2D6F3B
square
#2D406F #6F2D61 #6F5C2D #2D6F3B
split-complementary
#2D406F #6F3B2D #616F2D
monochromatic
#0A0E18 #1B2743 #2D406F #3F599B #5A76BC

Accessibility & contrast

On white

10.12
#2D406F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2D406F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D406F
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D406F#FFFFFF#000000##FFFFFF
##2D406F1.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4571
Deuteranopia (green-blind)
#243F6E
Tritanopia (blue-blind)
#024A52
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d406f;
/* rgb */ color: rgb(45, 64, 111);
/* oklch */ color: oklch(38.0% 0.084 265.9);
Tailwind
colors: {
  custom: {
    50: '#6c7498',
    500: '#2d406f',
    950: '#000000',
  },
}
SCSS
$custom: #2d406f;
$custom-light: #6c7498;
$custom-dark: #000000;
JSON
{
  "hex": "#2d406f",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 111
  },
  "hsl": {
    "h": 222.727,
    "s": 42.308,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38005,
    "c": 0.08412,
    "h": 265.9
  },
  "luminance": 0.05372
}

Semantic roles & 50–950 ramp

primary
#2D406F
secondary
#A18B57
accent
#AE56D2
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2D406F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2D406F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva