#2F476B#2F476B

#2F476B is a dark, moderate blue. Relative luminance 0.062; OKLCH L 39.6% C 0.068 H 258.3°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#2F476B
RGBrgb(47, 71, 107)
HSLhsl(216, 39%, 30%)
HSVhsv(216, 56%, 42%)
CMYKcmyk(56.1%, 33.6%, 0%, 58%)
CIE-LABlab(29.84, 2.36, -23.74)
CIE-LCHlch(29.84, 23.86, 275.67°)
OKLaboklab(39.57% -0.0139 -0.0668)
OKLCHoklch(39.57% 0.068 258.3)
XYZxyz(6.0785, 6.1719, 14.7780)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F476B #6B532F
analogous
#2F656B #2F476B #352F6B
triadic
#2F476B #6B2F47 #476B2F
tetradic
#2F476B #6B2F65 #6B532F #2F6B35
square
#2F476B #6B2F65 #6B532F #2F6B35
split-complementary
#2F476B #6B352F #656B2F
monochromatic
#0A0F16 #1C2B40 #2F476B #426396 #5D81B8

Accessibility & contrast

On white

9.40
#2F476B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2F476B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F476B
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F476B#FFFFFF#000000##FFFFFF
##2F476B1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39496D
Deuteranopia (green-blind)
#31446A
Tritanopia (blue-blind)
#0E4F54
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f476b;
/* rgb */ color: rgb(47, 71, 107);
/* oklch */ color: oklch(39.6% 0.068 258.3);
Tailwind
colors: {
  custom: {
    50: '#6c7a95',
    500: '#2f476b',
    950: '#000000',
  },
}
SCSS
$custom: #2f476b;
$custom-light: #6c7a95;
$custom-dark: #000000;
JSON
{
  "hex": "#2f476b",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 107
  },
  "hsl": {
    "h": 216,
    "s": 38.961,
    "l": 30.196
  },
  "oklch": {
    "l": 0.39573,
    "c": 0.06826,
    "h": 258.3
  },
  "luminance": 0.06172
}

Semantic roles & 50–950 ramp

primary
#2F476B
secondary
#9C8259
accent
#A059CF
background
#F6F7F9
surface
#ECEDF1
border
#C7C8CB
text
#07090D
muted
#7A7B7E

Preview Lab

Preview with #2F476B

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

Preview Lab → · Contrast checker → · Palette generator →

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