#2F406B#2F406B

#2F406B is a dark, moderate blue. Relative luminance 0.053; OKLCH L 37.9% C 0.077 H 266.5°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#2F406B
RGBrgb(47, 64, 107)
HSLhsl(223, 39%, 30%)
HSVhsv(223, 56%, 42%)
CMYKcmyk(56.1%, 40.2%, 0%, 58%)
CIE-LABlab(27.66, 7.04, -27.18)
CIE-LCHlch(27.66, 28.08, 284.52°)
OKLaboklab(37.88% -0.0047 -0.0769)
OKLCHoklch(37.88% 0.077 266.5)
XYZxyz(5.6586, 5.3323, 14.6381)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F406B #6B5A2F
analogous
#2F5E6B #2F406B #3C2F6B
triadic
#2F406B #6B2F40 #406B2F
tetradic
#2F406B #6B2F5E #6B5A2F #2F6B3C
square
#2F406B #6B2F5E #6B5A2F #2F6B3C
split-complementary
#2F406B #6B3C2F #5E6B2F
monochromatic
#0A0D16 #1C2740 #2F406B #425996 #5D76B8

Accessibility & contrast

On white

10.16
#2F406B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F406B
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F406B#FFFFFF#000000##FFFFFF
##2F406B1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F446D
Deuteranopia (green-blind)
#283F6A
Tritanopia (blue-blind)
#114950
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f406b;
/* rgb */ color: rgb(47, 64, 107);
/* oklch */ color: oklch(37.9% 0.077 266.5);
Tailwind
colors: {
  custom: {
    50: '#6c7495',
    500: '#2f406b',
    950: '#000000',
  },
}
SCSS
$custom: #2f406b;
$custom-light: #6c7495;
$custom-dark: #000000;
JSON
{
  "hex": "#2f406b",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 107
  },
  "hsl": {
    "h": 223,
    "s": 38.961,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37879,
    "c": 0.07705,
    "h": 266.5
  },
  "luminance": 0.05333
}

Semantic roles & 50–950 ramp

primary
#2F406B
secondary
#9C8959
accent
#AD59CF
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080D
muted
#7A7B7E

Preview Lab

Preview with #2F406B

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

Preview Lab → · Contrast checker → · Palette generator →

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