#2F4971#2F4971

#2F4971 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.4% C 0.075 H 258.7°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#2F4971
RGBrgb(47, 73, 113)
HSLhsl(216, 41%, 31%)
HSVhsv(216, 58%, 44%)
CMYKcmyk(58.4%, 35.4%, 0%, 55.7%)
CIE-LABlab(30.79, 3.16, -26.05)
CIE-LCHlch(30.79, 26.24, 276.93°)
OKLaboklab(40.41% -0.0146 -0.0735)
OKLCHoklch(40.41% 0.075 258.7)
XYZxyz(6.5344, 6.5612, 16.5417)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4971 #71572F
analogous
#2F6A71 #2F4971 #362F71
triadic
#2F4971 #712F49 #49712F
tetradic
#2F4971 #712F6A #71572F #2F7136
square
#2F4971 #712F6A #71572F #2F7136
split-complementary
#2F4971 #71362F #6A712F
monochromatic
#0B111B #1D2D46 #2F4971 #41659C #5E83BC

Accessibility & contrast

On white

9.08
#2F4971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2F4971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4971
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4971#FFFFFF#000000##FFFFFF
##2F49711.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#394C73
Deuteranopia (green-blind)
#314670
Tritanopia (blue-blind)
#035257
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f4971;
/* rgb */ color: rgb(47, 73, 113);
/* oklch */ color: oklch(40.4% 0.075 258.7);
Tailwind
colors: {
  custom: {
    50: '#6d7b9a',
    500: '#2f4971',
    950: '#000000',
  },
}
SCSS
$custom: #2f4971;
$custom-light: #6d7b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4971",
  "rgb": {
    "r": 47,
    "g": 73,
    "b": 113
  },
  "hsl": {
    "h": 216.364,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40413,
    "c": 0.07497,
    "h": 258.7
  },
  "luminance": 0.06562
}

Semantic roles & 50–950 ramp

primary
#2F4971
secondary
#A2865A
accent
#A157D1
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2F4971

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

Preview Lab → · Contrast checker → · Palette generator →

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