#2F4F88#2F4F88

#2F4F88 is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.3% C 0.102 H 261.1°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#2F4F88
RGBrgb(47, 79, 136)
HSLhsl(218, 49%, 36%)
HSVhsv(218, 65%, 53%)
CMYKcmyk(65.4%, 41.9%, 0%, 46.7%)
CIE-LABlab(33.93, 7.61, -35.37)
CIE-LCHlch(33.93, 36.18, 282.14°)
OKLaboklab(43.28% -0.0158 -0.1007)
OKLCHoklch(43.28% 0.102 261.1)
XYZxyz(8.4106, 7.9731, 24.3835)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F88 #88682F
analogous
#2F7B88 #2F4F88 #3B2F88
triadic
#2F4F88 #882F4F #4F882F
tetradic
#2F4F88 #882F7B #88682F #2F883B
square
#2F4F88 #882F7B #88682F #2F883B
split-complementary
#2F4F88 #883B2F #7B882F
monochromatic
#101A2D #1F355B #2F4F88 #3F69B5 #678BCA

Accessibility & contrast

On white

8.09
#2F4F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2F4F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F88
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F88#FFFFFF#000000##FFFFFF
##2F4F881.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35548A
Deuteranopia (green-blind)
#284C87
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f4f88;
/* rgb */ color: rgb(47, 79, 136);
/* oklch */ color: oklch(43.3% 0.102 261.1);
Tailwind
colors: {
  custom: {
    50: '#717fab',
    500: '#2f4f88',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f88;
$custom-light: #717fab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f88",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 136
  },
  "hsl": {
    "h": 218.427,
    "s": 48.634,
    "l": 35.882
  },
  "oklch": {
    "l": 0.43277,
    "c": 0.10194,
    "h": 261.1
  },
  "luminance": 0.07974
}

Semantic roles & 50–950 ramp

primary
#2F4F88
secondary
#B19561
accent
#A750D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F4F88

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

Preview Lab → · Contrast checker → · Palette generator →

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