#2F4F8F#2F4F8F

#2F4F8F is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.7% C 0.112 H 262.7°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#2F4F8F
RGBrgb(47, 79, 143)
HSLhsl(220, 51%, 37%)
HSVhsv(220, 67%, 56%)
CMYKcmyk(67.1%, 44.8%, 0%, 43.9%)
CIE-LABlab(34.35, 10.22, -38.98)
CIE-LCHlch(34.35, 40.29, 284.70°)
OKLaboklab(43.74% -0.0143 -0.1113)
OKLCHoklch(43.74% 0.112 262.7)
XYZxyz(8.9245, 8.1786, 27.0896)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F8F #8F6F2F
analogous
#2F7F8F #2F4F8F #3F2F8F
triadic
#2F4F8F #8F2F4F #4F8F2F
tetradic
#2F4F8F #8F2F7F #8F6F2F #2F8F3F
square
#2F4F8F #8F2F7F #8F6F2F #2F8F3F
split-complementary
#2F4F8F #8F3F2F #7F8F2F
monochromatic
#111C33 #203661 #2F4F8F #3E68BD #6A8CCE

Accessibility & contrast

On white

7.97
#2F4F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2F4F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F8F
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F8F#FFFFFF#000000##FFFFFF
##2F4F8F1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315691
Deuteranopia (green-blind)
#214D8E
Tritanopia (blue-blind)
#005E68
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f4f8f;
/* rgb */ color: rgb(47, 79, 143);
/* oklch */ color: oklch(43.7% 0.112 262.7);
Tailwind
colors: {
  custom: {
    50: '#727fb0',
    500: '#2f4f8f',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f8f;
$custom-light: #727fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f8f",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 143
  },
  "hsl": {
    "h": 220,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.43743,
    "c": 0.1122,
    "h": 262.7
  },
  "luminance": 0.08179
}

Semantic roles & 50–950 ramp

primary
#2F4F8F
secondary
#B59A65
accent
#AB4EDA
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #2F4F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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