#2F4F71#2F4F71

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

Color values

HEX#2F4F71
RGBrgb(47, 79, 113)
HSLhsl(211, 41%, 31%)
HSVhsv(211, 58%, 44%)
CMYKcmyk(58.4%, 30.1%, 0%, 55.7%)
CIE-LABlab(32.67, -0.74, -23.09)
CIE-LCHlch(32.67, 23.10, 268.16°)
OKLaboklab(41.89% -0.0222 -0.0649)
OKLCHoklch(41.89% 0.069 251.1)
XYZxyz(6.9478, 7.3880, 16.6795)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F71 #71512F
analogous
#2F7071 #2F4F71 #302F71
triadic
#2F4F71 #712F4F #4F712F
tetradic
#2F4F71 #712F70 #71512F #2F7130
square
#2F4F71 #712F70 #71512F #2F7130
split-complementary
#2F4F71 #71302F #70712F
monochromatic
#0B131B #1D3146 #2F4F71 #416D9C #5E8CBC

Accessibility & contrast

On white

8.48
#2F4F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4F71
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F71#FFFFFF#000000##FFFFFF
##2F4F711.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415072
Deuteranopia (green-blind)
#384A70
Tritanopia (blue-blind)
#01575B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f4f71;
/* rgb */ color: rgb(47, 79, 113);
/* oklch */ color: oklch(41.9% 0.069 251.1);
Tailwind
colors: {
  custom: {
    50: '#6d809a',
    500: '#2f4f71',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f71;
$custom-light: #6d809a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f71",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 113
  },
  "hsl": {
    "h": 210.909,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.41891,
    "c": 0.06859,
    "h": 251.1
  },
  "luminance": 0.07389
}

Semantic roles & 50–950 ramp

primary
#2F4F71
secondary
#A27F5A
accent
#9657D1
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #2F4F71

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

Preview Lab → · Contrast checker → · Palette generator →

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