#2F4E81#2F4E81

#2F4E81 is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.6% C 0.093 H 259.9°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#2F4E81
RGBrgb(47, 78, 129)
HSLhsl(217, 47%, 35%)
HSVhsv(217, 64%, 51%)
CMYKcmyk(63.6%, 39.5%, 0%, 49.4%)
CIE-LABlab(33.22, 5.68, -32.19)
CIE-LCHlch(33.22, 32.69, 280.00°)
OKLaboklab(42.59% -0.0163 -0.0914)
OKLCHoklch(42.59% 0.093 259.9)
XYZxyz(7.8577, 7.6374, 21.8247)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E81 #81622F
analogous
#2F7781 #2F4E81 #392F81
triadic
#2F4E81 #812F4E #4E812F
tetradic
#2F4E81 #812F77 #81622F #2F8139
square
#2F4E81 #812F77 #81622F #2F8139
split-complementary
#2F4E81 #81392F #77812F
monochromatic
#0E1827 #1F3354 #2F4E81 #3F69AE #6489C6

Accessibility & contrast

On white

8.31
#2F4E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2F4E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E81
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E81#FFFFFF#000000##FFFFFF
##2F4E811.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385283
Deuteranopia (green-blind)
#2D4B80
Tritanopia (blue-blind)
#005A61
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f4e81;
/* rgb */ color: rgb(47, 78, 129);
/* oklch */ color: oklch(42.6% 0.093 259.9);
Tailwind
colors: {
  custom: {
    50: '#707fa6',
    500: '#2f4e81',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e81;
$custom-light: #707fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e81",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 129
  },
  "hsl": {
    "h": 217.317,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.42593,
    "c": 0.09285,
    "h": 259.9
  },
  "luminance": 0.07638
}

Semantic roles & 50–950 ramp

primary
#2F4E81
secondary
#AD905E
accent
#A452D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2F4E81

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

Preview Lab → · Contrast checker → · Palette generator →

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