#2F4876#2F4876

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

Color values

HEX#2F4876
RGBrgb(47, 72, 118)
HSLhsl(219, 43%, 32%)
HSVhsv(219, 60%, 46%)
CMYKcmyk(60.2%, 39%, 0%, 53.7%)
CIE-LABlab(30.75, 5.63, -29.25)
CIE-LCHlch(30.75, 29.79, 280.90°)
OKLaboklab(40.48% -0.012 -0.0829)
OKLCHoklch(40.48% 0.084 261.7)
XYZxyz(6.7585, 6.5465, 18.0435)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4876 #765D2F
analogous
#2F6C76 #2F4876 #392F76
triadic
#2F4876 #762F48 #48762F
tetradic
#2F4876 #762F6C #765D2F #2F7639
square
#2F4876 #762F6C #765D2F #2F7639
split-complementary
#2F4876 #76392F #6C762F
monochromatic
#0C131E #1E2D4A #2F4876 #4063A2 #6082C0

Accessibility & contrast

On white

9.09
#2F4876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4876
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4876#FFFFFF#000000##FFFFFF
##2F48761.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354C78
Deuteranopia (green-blind)
#2C4575
Tritanopia (blue-blind)
#005259
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f4876;
/* rgb */ color: rgb(47, 72, 118);
/* oklch */ color: oklch(40.5% 0.084 261.7);
Tailwind
colors: {
  custom: {
    50: '#6e7a9e',
    500: '#2f4876',
    950: '#000000',
  },
}
SCSS
$custom: #2f4876;
$custom-light: #6e7a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4876",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 118
  },
  "hsl": {
    "h": 218.873,
    "s": 43.03,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40476,
    "c": 0.08374,
    "h": 261.7
  },
  "luminance": 0.06547
}

Semantic roles & 50–950 ramp

primary
#2F4876
secondary
#A78C5A
accent
#A755D3
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2F4876

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

Preview Lab → · Contrast checker → · Palette generator →

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