#2F477A#2F477A

#2F477A is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.5% C 0.091 H 263.8°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#2F477A
RGBrgb(47, 71, 122)
HSLhsl(221, 44%, 33%)
HSVhsv(221, 61%, 48%)
CMYKcmyk(61.5%, 41.8%, 0%, 52.2%)
CIE-LABlab(30.68, 7.76, -31.87)
CIE-LCHlch(30.68, 32.80, 283.68°)
OKLaboklab(40.49% -0.0098 -0.0905)
OKLCHoklch(40.49% 0.091 263.8)
XYZxyz(6.9372, 6.5154, 19.3006)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F477A #7A622F
analogous
#2F6C7A #2F477A #3C2F7A
triadic
#2F477A #7A2F47 #477A2F
tetradic
#2F477A #7A2F6C #7A622F #2F7A3C
square
#2F477A #7A2F6C #7A622F #2F7A3C
split-complementary
#2F477A #7A3C2F #6C7A2F
monochromatic
#0D1422 #1E2D4E #2F477A #4061A6 #6180C2

Accessibility & contrast

On white

9.12
#2F477A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2F477A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F477A
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F477A#FFFFFF#000000##FFFFFF
##2F477A1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314C7C
Deuteranopia (green-blind)
#274579
Tritanopia (blue-blind)
#00525A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f477a;
/* rgb */ color: rgb(47, 71, 122);
/* oklch */ color: oklch(40.5% 0.091 263.8);
Tailwind
colors: {
  custom: {
    50: '#6e79a1',
    500: '#2f477a',
    950: '#000000',
  },
}
SCSS
$custom: #2f477a;
$custom-light: #6e79a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f477a",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 122
  },
  "hsl": {
    "h": 220.8,
    "s": 44.379,
    "l": 33.137
  },
  "oklch": {
    "l": 0.40495,
    "c": 0.09108,
    "h": 263.8
  },
  "luminance": 0.06516
}

Semantic roles & 50–950 ramp

primary
#2F477A
secondary
#A9905C
accent
#AB54D4
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08090F
muted
#7B7B7E

Preview Lab

Preview with #2F477A

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

Preview Lab → · Contrast checker → · Palette generator →

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