#2F4D71#2F4D71

#2F4D71 is a dark, moderate cyan. Relative luminance 0.071; OKLCH L 41.4% C 0.071 H 253.8°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#2F4D71
RGBrgb(47, 77, 113)
HSLhsl(213, 41%, 31%)
HSVhsv(213, 58%, 44%)
CMYKcmyk(58.4%, 31.9%, 0%, 55.7%)
CIE-LABlab(32.04, 0.55, -24.08)
CIE-LCHlch(32.04, 24.09, 271.31°)
OKLaboklab(41.4% -0.0197 -0.0678)
OKLCHoklch(41.4% 0.071 253.8)
XYZxyz(6.8058, 7.1038, 16.6321)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D71 #71532F
analogous
#2F6E71 #2F4D71 #322F71
triadic
#2F4D71 #712F4D #4D712F
tetradic
#2F4D71 #712F6E #71532F #2F7132
square
#2F4D71 #712F6E #71532F #2F7132
split-complementary
#2F4D71 #71322F #6E712F
monochromatic
#0B121B #1D3046 #2F4D71 #416A9C #5E89BC

Accessibility & contrast

On white

8.67
#2F4D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2F4D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4D71
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4D71#FFFFFF#000000##FFFFFF
##2F4D711.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E4F73
Deuteranopia (green-blind)
#364870
Tritanopia (blue-blind)
#02555A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f4d71;
/* rgb */ color: rgb(47, 77, 113);
/* oklch */ color: oklch(41.4% 0.071 253.8);
Tailwind
colors: {
  custom: {
    50: '#6d7e9a',
    500: '#2f4d71',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d71;
$custom-light: #6d7e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d71",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 113
  },
  "hsl": {
    "h": 212.727,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.41395,
    "c": 0.07058,
    "h": 253.8
  },
  "luminance": 0.07104
}

Semantic roles & 50–950 ramp

primary
#2F4D71
secondary
#A2815A
accent
#9957D1
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #2F4D71

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

Preview Lab → · Contrast checker → · Palette generator →

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