#2F477D#2F477D

#2F477D is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.7% C 0.096 H 264.5°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#2F477D
RGBrgb(47, 71, 125)
HSLhsl(222, 45%, 34%)
HSVhsv(222, 62%, 49%)
CMYKcmyk(62.4%, 43.2%, 0%, 51%)
CIE-LABlab(30.86, 8.86, -33.46)
CIE-LCHlch(30.86, 34.61, 284.84°)
OKLaboklab(40.69% -0.0092 -0.0952)
OKLCHoklch(40.69% 0.096 264.5)
XYZxyz(7.1259, 6.5909, 20.2947)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F477D #7D652F
analogous
#2F6E7D #2F477D #3E2F7D
triadic
#2F477D #7D2F47 #477D2F
tetradic
#2F477D #7D2F6E #7D652F #2F7D3E
square
#2F477D #7D2F6E #7D652F #2F7D3E
split-complementary
#2F477D #7D3E2F #6E7D2F
monochromatic
#0E1424 #1E2E51 #2F477D #4060A9 #6280C4

Accessibility & contrast

On white

9.06
#2F477D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2F477D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F477D
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F477D#FFFFFF#000000##FFFFFF
##2F477D1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4C7F
Deuteranopia (green-blind)
#24457C
Tritanopia (blue-blind)
#00535C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f477d;
/* rgb */ color: rgb(47, 71, 125);
/* oklch */ color: oklch(40.7% 0.096 264.5);
Tailwind
colors: {
  custom: {
    50: '#6f79a3',
    500: '#2f477d',
    950: '#000000',
  },
}
SCSS
$custom: #2f477d;
$custom-light: #6f79a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f477d",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 125
  },
  "hsl": {
    "h": 221.538,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40691,
    "c": 0.09564,
    "h": 264.5
  },
  "luminance": 0.06591
}

Semantic roles & 50–950 ramp

primary
#2F477D
secondary
#AB935D
accent
#AD53D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2F477D

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

Preview Lab → · Contrast checker → · Palette generator →

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