#2F4576#2F4576

#2F4576 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 39.8% C 0.088 H 264.5°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#2F4576
RGBrgb(47, 69, 118)
HSLhsl(221, 43%, 32%)
HSVhsv(221, 60%, 46%)
CMYKcmyk(60.2%, 41.5%, 0%, 53.7%)
CIE-LABlab(29.83, 7.64, -30.70)
CIE-LCHlch(29.83, 31.64, 283.97°)
OKLaboklab(39.77% -0.0084 -0.0872)
OKLCHoklch(39.77% 0.088 264.5)
XYZxyz(6.5693, 6.1681, 17.9804)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4576 #76602F
analogous
#2F6976 #2F4576 #3C2F76
triadic
#2F4576 #762F45 #45762F
tetradic
#2F4576 #762F69 #76602F #2F763C
square
#2F4576 #762F69 #76602F #2F763C
split-complementary
#2F4576 #763C2F #69762F
monochromatic
#0C121E #1E2B4A #2F4576 #405FA2 #607DC0

Accessibility & contrast

On white

9.40
#2F4576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2F4576 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4576
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4576#FFFFFF#000000##FFFFFF
##2F45761.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304A78
Deuteranopia (green-blind)
#274375
Tritanopia (blue-blind)
#005057
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f4576;
/* rgb */ color: rgb(47, 69, 118);
/* oklch */ color: oklch(39.8% 0.088 264.5);
Tailwind
colors: {
  custom: {
    50: '#6e789e',
    500: '#2f4576',
    950: '#000000',
  },
}
SCSS
$custom: #2f4576;
$custom-light: #6e789e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4576",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 118
  },
  "hsl": {
    "h": 221.408,
    "s": 43.03,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39765,
    "c": 0.08756,
    "h": 264.5
  },
  "luminance": 0.06169
}

Semantic roles & 50–950 ramp

primary
#2F4576
secondary
#A78F5A
accent
#AC55D3
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2F4576

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

Preview Lab → · Contrast checker → · Palette generator →

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