#2F406A#2F406A

#2F406A is a dark, moderate blue. Relative luminance 0.053; OKLCH L 37.8% C 0.075 H 266.2°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#2F406A
RGBrgb(47, 64, 106)
HSLhsl(223, 39%, 30%)
HSVhsv(223, 56%, 42%)
CMYKcmyk(55.7%, 39.6%, 0%, 58.4%)
CIE-LABlab(27.60, 6.69, -26.63)
CIE-LCHlch(27.60, 27.46, 284.09°)
OKLaboklab(37.82% -0.005 -0.0753)
OKLCHoklch(37.82% 0.075 266.2)
XYZxyz(5.6063, 5.3113, 14.3626)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F406A #6A592F
analogous
#2F5D6A #2F406A #3C2F6A
triadic
#2F406A #6A2F40 #406A2F
tetradic
#2F406A #6A2F5D #6A592F #2F6A3C
square
#2F406A #6A2F5D #6A592F #2F6A3C
split-complementary
#2F406A #6A3C2F #5D6A2F
monochromatic
#090D15 #1C2640 #2F406A #425A94 #5C77B7

Accessibility & contrast

On white

10.18
#2F406A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2F406A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F406A
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F406A#FFFFFF#000000##FFFFFF
##2F406A1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F446C
Deuteranopia (green-blind)
#293F69
Tritanopia (blue-blind)
#124950
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f406a;
/* rgb */ color: rgb(47, 64, 106);
/* oklch */ color: oklch(37.8% 0.075 266.2);
Tailwind
colors: {
  custom: {
    50: '#6c7495',
    500: '#2f406a',
    950: '#000000',
  },
}
SCSS
$custom: #2f406a;
$custom-light: #6c7495;
$custom-dark: #000000;
JSON
{
  "hex": "#2f406a",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 106
  },
  "hsl": {
    "h": 222.712,
    "s": 38.562,
    "l": 30
  },
  "oklch": {
    "l": 0.37816,
    "c": 0.07547,
    "h": 266.2
  },
  "luminance": 0.05312
}

Semantic roles & 50–950 ramp

primary
#2F406A
secondary
#9B8859
accent
#AD59CE
background
#F6F7F9
surface
#ECEDF1
border
#C7C8CB
text
#07080D
muted
#7A7B7E

Preview Lab

Preview with #2F406A

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

Preview Lab → · Contrast checker → · Palette generator →

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