#2F406F#2F406F

#2F406F is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.1% C 0.083 H 267.4°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#2F406F
RGBrgb(47, 64, 111)
HSLhsl(224, 41%, 31%)
HSVhsv(224, 58%, 44%)
CMYKcmyk(57.7%, 42.3%, 0%, 56.5%)
CIE-LABlab(27.89, 8.48, -29.36)
CIE-LCHlch(27.89, 30.56, 286.11°)
OKLaboklab(38.14% -0.0038 -0.0833)
OKLCHoklch(38.14% 0.083 267.4)
XYZxyz(5.8740, 5.4184, 15.7722)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F406F #6F5E2F
analogous
#2F606F #2F406F #3E2F6F
triadic
#2F406F #6F2F40 #406F2F
tetradic
#2F406F #6F2F60 #6F5E2F #2F6F3E
square
#2F406F #6F2F60 #6F5E2F #2F6F3E
split-complementary
#2F406F #6F3E2F #606F2F
monochromatic
#0B0E19 #1D2744 #2F406F #41599A #5E76BB

Accessibility & contrast

On white

10.08
#2F406F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F406F
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F406F#FFFFFF#000000##FFFFFF
##2F406F1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4571
Deuteranopia (green-blind)
#253F6E
Tritanopia (blue-blind)
#0B4A52
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f406f;
/* rgb */ color: rgb(47, 64, 111);
/* oklch */ color: oklch(38.1% 0.083 267.4);
Tailwind
colors: {
  custom: {
    50: '#6d7498',
    500: '#2f406f',
    950: '#000000',
  },
}
SCSS
$custom: #2f406f;
$custom-light: #6d7498;
$custom-dark: #000000;
JSON
{
  "hex": "#2f406f",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 111
  },
  "hsl": {
    "h": 224.063,
    "s": 40.506,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38136,
    "c": 0.08335,
    "h": 267.4
  },
  "luminance": 0.05419
}

Semantic roles & 50–950 ramp

primary
#2F406F
secondary
#A08D59
accent
#B057D0
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2F406F

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

Preview Lab → · Contrast checker → · Palette generator →

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