#2F4D8A#2F4D8A

#2F4D8A is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.9% C 0.107 H 262.9°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#2F4D8A
RGBrgb(47, 77, 138)
HSLhsl(220, 49%, 36%)
HSVhsv(220, 66%, 54%)
CMYKcmyk(65.9%, 44.2%, 0%, 45.9%)
CIE-LABlab(33.45, 9.68, -37.36)
CIE-LCHlch(33.45, 38.59, 284.53°)
OKLaboklab(42.95% -0.0132 -0.1066)
OKLCHoklch(42.95% 0.107 262.9)
XYZxyz(8.4120, 7.7463, 25.0917)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D8A #8A6C2F
analogous
#2F7B8A #2F4D8A #3F2F8A
triadic
#2F4D8A #8A2F4D #4D8A2F
tetradic
#2F4D8A #8A2F7B #8A6C2F #2F8A3F
square
#2F4D8A #8A2F7B #8A6C2F #2F8A3F
split-complementary
#2F4D8A #8A3F2F #7B8A2F
monochromatic
#101A2F #1F345C #2F4D8A #3F66B8 #6889CC

Accessibility & contrast

On white

8.24
#2F4D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2F4D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4D8A
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4D8A#FFFFFF#000000##FFFFFF
##2F4D8A1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31538C
Deuteranopia (green-blind)
#224B89
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f4d8a;
/* rgb */ color: rgb(47, 77, 138);
/* oklch */ color: oklch(42.9% 0.107 262.9);
Tailwind
colors: {
  custom: {
    50: '#717eac',
    500: '#2f4d8a',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d8a;
$custom-light: #717eac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d8a",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 138
  },
  "hsl": {
    "h": 220.22,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42947,
    "c": 0.10738,
    "h": 262.9
  },
  "luminance": 0.07747
}

Semantic roles & 50–950 ramp

primary
#2F4D8A
secondary
#B39862
accent
#AB4FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2F4D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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