#2F4E8B#2F4E8B

#2F4E8B is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.2% C 0.108 H 262.5°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#2F4E8B
RGBrgb(47, 78, 139)
HSLhsl(220, 49%, 36%)
HSVhsv(220, 66%, 55%)
CMYKcmyk(66.2%, 43.9%, 0%, 45.5%)
CIE-LABlab(33.81, 9.39, -37.40)
CIE-LCHlch(33.81, 38.56, 284.09°)
OKLaboklab(43.24% -0.0141 -0.1067)
OKLCHoklch(43.24% 0.108 262.5)
XYZxyz(8.5552, 7.9164, 25.4982)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E8B #8B6C2F
analogous
#2F7C8B #2F4E8B #3E2F8B
triadic
#2F4E8B #8B2F4E #4E8B2F
tetradic
#2F4E8B #8B2F7C #8B6C2F #2F8B3E
square
#2F4E8B #8B2F7C #8B6C2F #2F8B3E
split-complementary
#2F4E8B #8B3E2F #7C8B2F
monochromatic
#101B30 #20345D #2F4E8B #3E68B9 #688ACC

Accessibility & contrast

On white

8.13
#2F4E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2F4E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E8B
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E8B#FFFFFF#000000##FFFFFF
##2F4E8B1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548D
Deuteranopia (green-blind)
#234C8A
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f4e8b;
/* rgb */ color: rgb(47, 78, 139);
/* oklch */ color: oklch(43.2% 0.108 262.5);
Tailwind
colors: {
  custom: {
    50: '#717fad',
    500: '#2f4e8b',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e8b;
$custom-light: #717fad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e8b",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 139
  },
  "hsl": {
    "h": 219.783,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.43244,
    "c": 0.10759,
    "h": 262.5
  },
  "luminance": 0.07917
}

Semantic roles & 50–950 ramp

primary
#2F4E8B
secondary
#B39863
accent
#AA4FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F4E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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