#2F4E71#2F4E71

#2F4E71 is a dark, moderate cyan. Relative luminance 0.072; OKLCH L 41.6% C 0.070 H 252.5°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#2F4E71
RGBrgb(47, 78, 113)
HSLhsl(212, 41%, 31%)
HSVhsv(212, 58%, 44%)
CMYKcmyk(58.4%, 31%, 0%, 55.7%)
CIE-LABlab(32.36, -0.10, -23.59)
CIE-LCHlch(32.36, 23.59, 269.76°)
OKLaboklab(41.64% -0.0209 -0.0663)
OKLCHoklch(41.64% 0.07 252.5)
XYZxyz(6.8763, 7.2448, 16.6556)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E71 #71522F
analogous
#2F6F71 #2F4E71 #312F71
triadic
#2F4E71 #712F4E #4E712F
tetradic
#2F4E71 #712F6F #71522F #2F7131
square
#2F4E71 #712F6F #71522F #2F7131
split-complementary
#2F4E71 #71312F #6F712F
monochromatic
#0B121B #1D3046 #2F4E71 #416C9C #5E8ABC

Accessibility & contrast

On white

8.57
#2F4E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2F4E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E71
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E71#FFFFFF#000000##FFFFFF
##2F4E711.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405073
Deuteranopia (green-blind)
#374970
Tritanopia (blue-blind)
#01565A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f4e71;
/* rgb */ color: rgb(47, 78, 113);
/* oklch */ color: oklch(41.6% 0.070 252.5);
Tailwind
colors: {
  custom: {
    50: '#6d7f9a',
    500: '#2f4e71',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e71;
$custom-light: #6d7f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e71",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 113
  },
  "hsl": {
    "h": 211.818,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.41642,
    "c": 0.06957,
    "h": 252.5
  },
  "luminance": 0.07245
}

Semantic roles & 50–950 ramp

primary
#2F4E71
secondary
#A2805A
accent
#9857D1
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #2F4E71

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

Preview Lab → · Contrast checker → · Palette generator →

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