#2F477F#2F477F

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

Color values

HEX#2F477F
RGBrgb(47, 71, 127)
HSLhsl(222, 46%, 34%)
HSVhsv(222, 63%, 50%)
CMYKcmyk(63%, 44.1%, 0%, 50.2%)
CIE-LABlab(30.98, 9.60, -34.51)
CIE-LCHlch(30.98, 35.82, 285.55°)
OKLaboklab(40.83% -0.0088 -0.0983)
OKLCHoklch(40.83% 0.099 264.9)
XYZxyz(7.2550, 6.6425, 20.9744)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F477F #7F672F
analogous
#2F6F7F #2F477F #3F2F7F
triadic
#2F477F #7F2F47 #477F2F
tetradic
#2F477F #7F2F6F #7F672F #2F7F3F
square
#2F477F #7F2F6F #7F672F #2F7F3F
split-complementary
#2F477F #7F3F2F #6F7F2F
monochromatic
#0E1526 #1E2E52 #2F477F #4060AC #6381C5

Accessibility & contrast

On white

9.02
#2F477F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2F477F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F477F
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F477F#FFFFFF#000000##FFFFFF
##2F477F1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4D81
Deuteranopia (green-blind)
#22467E
Tritanopia (blue-blind)
#00545C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f477f;
/* rgb */ color: rgb(47, 71, 127);
/* oklch */ color: oklch(40.8% 0.099 264.9);
Tailwind
colors: {
  custom: {
    50: '#6f79a4',
    500: '#2f477f',
    950: '#000000',
  },
}
SCSS
$custom: #2f477f;
$custom-light: #6f79a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f477f",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 127
  },
  "hsl": {
    "h": 222,
    "s": 45.977,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40825,
    "c": 0.09867,
    "h": 264.9
  },
  "luminance": 0.06643
}

Semantic roles & 50–950 ramp

primary
#2F477F
secondary
#AC955E
accent
#AE52D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2F477F

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

Preview Lab → · Contrast checker → · Palette generator →

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