#2F406D#2F406D

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

Color values

HEX#2F406D
RGBrgb(47, 64, 109)
HSLhsl(224, 40%, 31%)
HSVhsv(224, 57%, 43%)
CMYKcmyk(56.9%, 41.3%, 0%, 57.3%)
CIE-LABlab(27.78, 7.76, -28.27)
CIE-LCHlch(27.78, 29.32, 285.35°)
OKLaboklab(38.01% -0.0043 -0.0801)
OKLCHoklch(38.01% 0.08 267)
XYZxyz(5.7651, 5.3748, 15.1987)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F406D #6D5C2F
analogous
#2F5F6D #2F406D #3D2F6D
triadic
#2F406D #6D2F40 #406D2F
tetradic
#2F406D #6D2F5F #6D5C2F #2F6D3D
square
#2F406D #6D2F5F #6D5C2F #2F6D3D
split-complementary
#2F406D #6D3D2F #5F6D2F
monochromatic
#0A0E17 #1D2742 #2F406D #415998 #5D76B9

Accessibility & contrast

On white

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

On black

2.08
#2F406D on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2F406D#FFFFFF#000000##FFFFFF
##2F406D1.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E456F
Deuteranopia (green-blind)
#263F6C
Tritanopia (blue-blind)
#0E4A51
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f406d;
/* rgb */ color: rgb(47, 64, 109);
/* oklch */ color: oklch(38.0% 0.080 267.0);
Tailwind
colors: {
  custom: {
    50: '#6c7497',
    500: '#2f406d',
    950: '#000000',
  },
}
SCSS
$custom: #2f406d;
$custom-light: #6c7497;
$custom-dark: #000000;
JSON
{
  "hex": "#2f406d",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 109
  },
  "hsl": {
    "h": 223.548,
    "s": 39.744,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38006,
    "c": 0.0802,
    "h": 267
  },
  "luminance": 0.05375
}

Semantic roles & 50–950 ramp

primary
#2F406D
secondary
#9E8B59
accent
#AF58D0
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080D
muted
#7A7B7E

Preview Lab

Preview with #2F406D

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

Preview Lab → · Contrast checker → · Palette generator →

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