#2F477B#2F477B

#2F477B is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.6% C 0.093 H 264.0°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#2F477B
RGBrgb(47, 71, 123)
HSLhsl(221, 45%, 33%)
HSVhsv(221, 62%, 48%)
CMYKcmyk(61.8%, 42.3%, 0%, 51.8%)
CIE-LABlab(30.74, 8.13, -32.40)
CIE-LCHlch(30.74, 33.40, 284.08°)
OKLaboklab(40.56% -0.0096 -0.0921)
OKLCHoklch(40.56% 0.093 264)
XYZxyz(6.9995, 6.5403, 19.6286)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F477B #7B632F
analogous
#2F6D7B #2F477B #3D2F7B
triadic
#2F477B #7B2F47 #477B2F
tetradic
#2F477B #7B2F6D #7B632F #2F7B3D
square
#2F477B #7B2F6D #7B632F #2F7B3D
split-complementary
#2F477B #7B3D2F #6D7B2F
monochromatic
#0D1422 #1E2D4F #2F477B #4061A7 #6280C3

Accessibility & contrast

On white

9.10
#2F477B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2F477B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F477B
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F477B#FFFFFF#000000##FFFFFF
##2F477B1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304C7D
Deuteranopia (green-blind)
#26457A
Tritanopia (blue-blind)
#00535B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f477b;
/* rgb */ color: rgb(47, 71, 123);
/* oklch */ color: oklch(40.6% 0.093 264.0);
Tailwind
colors: {
  custom: {
    50: '#6f79a1',
    500: '#2f477b',
    950: '#000000',
  },
}
SCSS
$custom: #2f477b;
$custom-light: #6f79a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f477b",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 123
  },
  "hsl": {
    "h": 221.053,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.4056,
    "c": 0.0926,
    "h": 264
  },
  "luminance": 0.06541
}

Semantic roles & 50–950 ramp

primary
#2F477B
secondary
#AA915C
accent
#AC53D4
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08090F
muted
#7B7B7E

Preview Lab

Preview with #2F477B

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

Preview Lab → · Contrast checker → · Palette generator →

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