#2F477E#2F477E

#2F477E is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.8% C 0.097 H 264.7°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#2F477E
RGBrgb(47, 71, 126)
HSLhsl(222, 46%, 34%)
HSVhsv(222, 63%, 49%)
CMYKcmyk(62.7%, 43.7%, 0%, 50.6%)
CIE-LABlab(30.92, 9.23, -33.98)
CIE-LCHlch(30.92, 35.22, 285.20°)
OKLaboklab(40.76% -0.009 -0.0967)
OKLCHoklch(40.76% 0.097 264.7)
XYZxyz(7.1901, 6.6166, 20.6328)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F477E #7E662F
analogous
#2F6F7E #2F477E #3F2F7E
triadic
#2F477E #7E2F47 #477E2F
tetradic
#2F477E #7E2F6F #7E662F #2F7E3F
square
#2F477E #7E2F6F #7E662F #2F7E3F
split-complementary
#2F477E #7E3F2F #6F7E2F
monochromatic
#0E1525 #1E2E51 #2F477E #4060AB #6380C5

Accessibility & contrast

On white

9.04
#2F477E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F477E
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F477E#FFFFFF#000000##FFFFFF
##2F477E1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4D80
Deuteranopia (green-blind)
#23457D
Tritanopia (blue-blind)
#00535C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f477e;
/* rgb */ color: rgb(47, 71, 126);
/* oklch */ color: oklch(40.8% 0.097 264.7);
Tailwind
colors: {
  custom: {
    50: '#6f79a4',
    500: '#2f477e',
    950: '#000000',
  },
}
SCSS
$custom: #2f477e;
$custom-light: #6f79a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f477e",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 126
  },
  "hsl": {
    "h": 221.772,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40758,
    "c": 0.09716,
    "h": 264.7
  },
  "luminance": 0.06617
}

Semantic roles & 50–950 ramp

primary
#2F477E
secondary
#AC945D
accent
#AE52D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2F477E

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

Preview Lab → · Contrast checker → · Palette generator →

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