#2F4D8B#2F4D8B

#2F4D8B is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.0% C 0.109 H 263.1°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#2F4D8B
RGBrgb(47, 77, 139)
HSLhsl(220, 49%, 36%)
HSVhsv(220, 66%, 55%)
CMYKcmyk(66.2%, 44.6%, 0%, 45.5%)
CIE-LABlab(33.51, 10.05, -37.88)
CIE-LCHlch(33.51, 39.19, 284.87°)
OKLaboklab(43.01% -0.013 -0.1081)
OKLCHoklch(43.01% 0.109 263.1)
XYZxyz(8.4847, 7.7754, 25.4747)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D8B #8B6D2F
analogous
#2F7B8B #2F4D8B #3F2F8B
triadic
#2F4D8B #8B2F4D #4D8B2F
tetradic
#2F4D8B #8B2F7B #8B6D2F #2F8B3F
square
#2F4D8B #8B2F7B #8B6D2F #2F8B3F
split-complementary
#2F4D8B #8B3F2F #7B8B2F
monochromatic
#101A30 #20345D #2F4D8B #3E66B9 #6889CC

Accessibility & contrast

On white

8.22
#2F4D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2F4D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4D8B
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4D8B#FFFFFF#000000##FFFFFF
##2F4D8B1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30538D
Deuteranopia (green-blind)
#214B8A
Tritanopia (blue-blind)
#005B65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f4d8b;
/* rgb */ color: rgb(47, 77, 139);
/* oklch */ color: oklch(43.0% 0.109 263.1);
Tailwind
colors: {
  custom: {
    50: '#717ead',
    500: '#2f4d8b',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d8b;
$custom-light: #717ead;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d8b",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 139
  },
  "hsl": {
    "h": 220.435,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.43014,
    "c": 0.10886,
    "h": 263.1
  },
  "luminance": 0.07776
}

Semantic roles & 50–950 ramp

primary
#2F4D8B
secondary
#B39963
accent
#AC4FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2F4D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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