#2F4387#2F4387

#2F4387 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.5% C 0.116 H 268.5°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#2F4387
RGBrgb(47, 67, 135)
HSLhsl(226, 48%, 36%)
HSVhsv(226, 65%, 53%)
CMYKcmyk(65.2%, 50.4%, 0%, 47.1%)
CIE-LABlab(30.32, 15.29, -40.53)
CIE-LCHlch(30.32, 43.31, 290.67°)
OKLaboklab(40.49% -0.0031 -0.116)
OKLCHoklch(40.49% 0.116 268.5)
XYZxyz(7.5511, 6.3673, 23.7480)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4387 #87732F
analogous
#2F6F87 #2F4387 #472F87
triadic
#2F4387 #872F43 #43872F
tetradic
#2F4387 #872F6F #87732F #2F8747
square
#2F4387 #872F6F #87732F #2F8747
split-complementary
#2F4387 #87472F #6F872F
monochromatic
#0F162C #1F2C5A #2F4387 #3F5AB4 #667DCA

Accessibility & contrast

On white

9.24
#2F4387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2F4387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4387
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4387#FFFFFF#000000##FFFFFF
##2F43871.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4C89
Deuteranopia (green-blind)
#0C4486
Tritanopia (blue-blind)
#00535E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f4387;
/* rgb */ color: rgb(47, 67, 135);
/* oklch */ color: oklch(40.5% 0.116 268.5);
Tailwind
colors: {
  custom: {
    50: '#7176aa',
    500: '#2f4387',
    950: '#000000',
  },
}
SCSS
$custom: #2f4387;
$custom-light: #7176aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4387",
  "rgb": {
    "r": 47,
    "g": 67,
    "b": 135
  },
  "hsl": {
    "h": 226.364,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40489,
    "c": 0.11606,
    "h": 268.5
  },
  "luminance": 0.06368
}

Semantic roles & 50–950 ramp

primary
#2F4387
secondary
#B19F61
accent
#B950D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F4387

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

Preview Lab → · Contrast checker → · Palette generator →

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