#2F4F8B#2F4F8B

#2F4F8B is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.5% C 0.106 H 261.8°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#2F4F8B
RGBrgb(47, 79, 139)
HSLhsl(219, 49%, 36%)
HSVhsv(219, 66%, 55%)
CMYKcmyk(66.2%, 43.2%, 0%, 45.5%)
CIE-LABlab(34.11, 8.72, -36.92)
CIE-LCHlch(34.11, 37.94, 283.29°)
OKLaboklab(43.47% -0.0151 -0.1053)
OKLCHoklch(43.47% 0.106 261.8)
XYZxyz(8.6268, 8.0596, 25.5221)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F8B #8B6B2F
analogous
#2F7D8B #2F4F8B #3D2F8B
triadic
#2F4F8B #8B2F4F #4F8B2F
tetradic
#2F4F8B #8B2F7D #8B6B2F #2F8B3D
square
#2F4F8B #8B2F7D #8B6B2F #2F8B3D
split-complementary
#2F4F8B #8B3D2F #7D8B2F
monochromatic
#101B30 #20355D #2F4F8B #3E69B9 #688BCC

Accessibility & contrast

On white

8.04
#2F4F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#2F4F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F8B
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F8B#FFFFFF#000000##FFFFFF
##2F4F8B1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34558D
Deuteranopia (green-blind)
#254C8A
Tritanopia (blue-blind)
#005D66
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f4f8b;
/* rgb */ color: rgb(47, 79, 139);
/* oklch */ color: oklch(43.5% 0.106 261.8);
Tailwind
colors: {
  custom: {
    50: '#717fad',
    500: '#2f4f8b',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f8b;
$custom-light: #717fad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f8b",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 139
  },
  "hsl": {
    "h": 219.13,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.43474,
    "c": 0.10634,
    "h": 261.8
  },
  "luminance": 0.0806
}

Semantic roles & 50–950 ramp

primary
#2F4F8B
secondary
#B39763
accent
#A94FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F4F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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