#2F477C#2F477C

#2F477C is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.6% C 0.094 H 264.3°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#2F477C
RGBrgb(47, 71, 124)
HSLhsl(221, 45%, 34%)
HSVhsv(221, 62%, 49%)
CMYKcmyk(62.1%, 42.7%, 0%, 51.4%)
CIE-LABlab(30.80, 8.49, -32.93)
CIE-LCHlch(30.80, 34.01, 284.47°)
OKLaboklab(40.63% -0.0094 -0.0936)
OKLCHoklch(40.63% 0.094 264.3)
XYZxyz(7.0624, 6.5655, 19.9600)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F477C #7C642F
analogous
#2F6D7C #2F477C #3D2F7C
triadic
#2F477C #7C2F47 #477C2F
tetradic
#2F477C #7C2F6D #7C642F #2F7C3D
square
#2F477C #7C2F6D #7C642F #2F7C3D
split-complementary
#2F477C #7C3D2F #6D7C2F
monochromatic
#0D1423 #1E2E50 #2F477C #4060A8 #6280C3

Accessibility & contrast

On white

9.08
#2F477C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F477C
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F477C#FFFFFF#000000##FFFFFF
##2F477C1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304C7E
Deuteranopia (green-blind)
#25457B
Tritanopia (blue-blind)
#00535B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f477c;
/* rgb */ color: rgb(47, 71, 124);
/* oklch */ color: oklch(40.6% 0.094 264.3);
Tailwind
colors: {
  custom: {
    50: '#6f79a2',
    500: '#2f477c',
    950: '#000000',
  },
}
SCSS
$custom: #2f477c;
$custom-light: #6f79a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f477c",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 124
  },
  "hsl": {
    "h": 221.299,
    "s": 45.029,
    "l": 33.529
  },
  "oklch": {
    "l": 0.40625,
    "c": 0.09412,
    "h": 264.3
  },
  "luminance": 0.06566
}

Semantic roles & 50–950 ramp

primary
#2F477C
secondary
#AA925C
accent
#AC53D5
background
#F6F7FA
surface
#ECEDF3
border
#C7C8CD
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2F477C

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

Preview Lab → · Contrast checker → · Palette generator →

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