#2F4F8E#2F4F8E

#2F4F8E is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.7% C 0.111 H 262.5°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#2F4F8E
RGBrgb(47, 79, 142)
HSLhsl(220, 50%, 37%)
HSVhsv(220, 67%, 56%)
CMYKcmyk(66.9%, 44.4%, 0%, 44.3%)
CIE-LABlab(34.29, 9.85, -38.46)
CIE-LCHlch(34.29, 39.70, 284.36°)
OKLaboklab(43.68% -0.0145 -0.1098)
OKLCHoklch(43.68% 0.111 262.5)
XYZxyz(8.8490, 8.1485, 26.6924)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F8E #8E6E2F
analogous
#2F7F8E #2F4F8E #3E2F8E
triadic
#2F4F8E #8E2F4F #4F8E2F
tetradic
#2F4F8E #8E2F7F #8E6E2F #2F8E3E
square
#2F4F8E #8E2F7F #8E6E2F #2F8E3E
split-complementary
#2F4F8E #8E3E2F #7F8E2F
monochromatic
#111C32 #203560 #2F4F8E #3E69BC #6A8BCE

Accessibility & contrast

On white

7.99
#2F4F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2F4F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F8E
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F8E#FFFFFF#000000##FFFFFF
##2F4F8E1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315590
Deuteranopia (green-blind)
#224D8D
Tritanopia (blue-blind)
#005D67
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f4f8e;
/* rgb */ color: rgb(47, 79, 142);
/* oklch */ color: oklch(43.7% 0.111 262.5);
Tailwind
colors: {
  custom: {
    50: '#727faf',
    500: '#2f4f8e',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f8e;
$custom-light: #727faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f8e",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 142
  },
  "hsl": {
    "h": 219.789,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.43675,
    "c": 0.11074,
    "h": 262.5
  },
  "luminance": 0.08149
}

Semantic roles & 50–950 ramp

primary
#2F4F8E
secondary
#B59A64
accent
#AB4EDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #2F4F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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