#2F406E#2F406E

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

Color values

HEX#2F406E
RGBrgb(47, 64, 110)
HSLhsl(224, 40%, 31%)
HSVhsv(224, 57%, 43%)
CMYKcmyk(57.3%, 41.8%, 0%, 56.9%)
CIE-LABlab(27.84, 8.12, -28.81)
CIE-LCHlch(27.84, 29.94, 285.74°)
OKLaboklab(38.07% -0.004 -0.0817)
OKLCHoklch(38.07% 0.082 267.2)
XYZxyz(5.8192, 5.3965, 15.4838)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F406E #6E5D2F
analogous
#2F5F6E #2F406E #3E2F6E
triadic
#2F406E #6E2F40 #406E2F
tetradic
#2F406E #6E2F5F #6E5D2F #2F6E3E
square
#2F406E #6E2F5F #6E5D2F #2F6E3E
split-complementary
#2F406E #6E3E2F #5F6E2F
monochromatic
#0A0E18 #1D2743 #2F406E #415999 #5D76BA

Accessibility & contrast

On white

10.10
#2F406E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F406E
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F406E#FFFFFF#000000##FFFFFF
##2F406E1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4570
Deuteranopia (green-blind)
#263F6D
Tritanopia (blue-blind)
#0D4A51
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f406e;
/* rgb */ color: rgb(47, 64, 110);
/* oklch */ color: oklch(38.1% 0.082 267.2);
Tailwind
colors: {
  custom: {
    50: '#6d7498',
    500: '#2f406e',
    950: '#000000',
  },
}
SCSS
$custom: #2f406e;
$custom-light: #6d7498;
$custom-dark: #000000;
JSON
{
  "hex": "#2f406e",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 110
  },
  "hsl": {
    "h": 223.81,
    "s": 40.127,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38071,
    "c": 0.08178,
    "h": 267.2
  },
  "luminance": 0.05397
}

Semantic roles & 50–950 ramp

primary
#2F406E
secondary
#9F8C59
accent
#B058D0
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080D
muted
#7A7B7E

Preview Lab

Preview with #2F406E

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

Preview Lab → · Contrast checker → · Palette generator →

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