#2F4F72#2F4F72

#2F4F72 is a dark, moderate cyan. Relative luminance 0.074; OKLCH L 41.9% C 0.070 H 251.8°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#2F4F72
RGBrgb(47, 79, 114)
HSLhsl(211, 42%, 32%)
HSVhsv(211, 59%, 45%)
CMYKcmyk(58.8%, 30.7%, 0%, 55.3%)
CIE-LABlab(32.72, -0.39, -23.64)
CIE-LCHlch(32.72, 23.64, 269.06°)
OKLaboklab(41.95% -0.0219 -0.0665)
OKLCHoklch(41.95% 0.07 251.8)
XYZxyz(7.0045, 7.4106, 16.9776)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F72 #72522F
analogous
#2F7172 #2F4F72 #312F72
triadic
#2F4F72 #722F4F #4F722F
tetradic
#2F4F72 #722F71 #72522F #2F7231
square
#2F4F72 #722F71 #72522F #2F7231
split-complementary
#2F4F72 #72312F #71722F
monochromatic
#0B131B #1D3147 #2F4F72 #416D9D #5F8CBD

Accessibility & contrast

On white

8.46
#2F4F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2F4F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F72
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F72#FFFFFF#000000##FFFFFF
##2F4F721.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415174
Deuteranopia (green-blind)
#384A71
Tritanopia (blue-blind)
#00575B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f4f72;
/* rgb */ color: rgb(47, 79, 114);
/* oklch */ color: oklch(41.9% 0.070 251.8);
Tailwind
colors: {
  custom: {
    50: '#6d809a',
    500: '#2f4f72',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f72;
$custom-light: #6d809a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f72",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 114
  },
  "hsl": {
    "h": 211.343,
    "s": 41.615,
    "l": 31.569
  },
  "oklch": {
    "l": 0.41946,
    "c": 0.06999,
    "h": 251.8
  },
  "luminance": 0.07411
}

Semantic roles & 50–950 ramp

primary
#2F4F72
secondary
#A3805A
accent
#9756D1
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #2F4F72

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

Preview Lab → · Contrast checker → · Palette generator →

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