#2F476D#2F476D

#2F476D is a dark, moderate blue. Relative luminance 0.062; OKLCH L 39.7% C 0.071 H 259.3°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#2F476D
RGBrgb(47, 71, 109)
HSLhsl(217, 40%, 31%)
HSVhsv(217, 57%, 43%)
CMYKcmyk(56.9%, 34.9%, 0%, 57.3%)
CIE-LABlab(29.95, 3.06, -24.85)
CIE-LCHlch(29.95, 25.03, 277.03°)
OKLaboklab(39.69% -0.0133 -0.07)
OKLCHoklch(39.69% 0.071 259.3)
XYZxyz(6.1849, 6.2145, 15.3386)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F476D #6D552F
analogous
#2F666D #2F476D #362F6D
triadic
#2F476D #6D2F47 #476D2F
tetradic
#2F476D #6D2F66 #6D552F #2F6D36
square
#2F476D #6D2F66 #6D552F #2F6D36
split-complementary
#2F476D #6D362F #666D2F
monochromatic
#0A0F17 #1D2B42 #2F476D #416398 #5D81B9

Accessibility & contrast

On white

9.36
#2F476D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2F476D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F476D
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F476D#FFFFFF#000000##FFFFFF
##2F476D1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384A6F
Deuteranopia (green-blind)
#30446C
Tritanopia (blue-blind)
#0C4F55
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f476d;
/* rgb */ color: rgb(47, 71, 109);
/* oklch */ color: oklch(39.7% 0.071 259.3);
Tailwind
colors: {
  custom: {
    50: '#6c7a97',
    500: '#2f476d',
    950: '#000000',
  },
}
SCSS
$custom: #2f476d;
$custom-light: #6c7a97;
$custom-dark: #000000;
JSON
{
  "hex": "#2f476d",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 109
  },
  "hsl": {
    "h": 216.774,
    "s": 39.744,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3969,
    "c": 0.07129,
    "h": 259.3
  },
  "luminance": 0.06215
}

Semantic roles & 50–950 ramp

primary
#2F476D
secondary
#9E8459
accent
#A158D0
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090D
muted
#7A7B7E

Preview Lab

Preview with #2F476D

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

Preview Lab → · Contrast checker → · Palette generator →

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