#2F3476#2F3476

#2F3476 is a dark, moderate blue. Relative luminance 0.044; OKLCH L 36.0% C 0.111 H 276.0°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#2F3476
RGBrgb(47, 52, 118)
HSLhsl(236, 43%, 32%)
HSVhsv(236, 60%, 46%)
CMYKcmyk(60.2%, 55.9%, 0%, 53.7%)
CIE-LABlab(24.85, 19.27, -38.68)
CIE-LCHlch(24.85, 43.21, 296.48°)
OKLaboklab(35.97% 0.0117 -0.1108)
OKLCHoklch(35.97% 0.111 276)
XYZxyz(5.6692, 4.3679, 17.6804)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3476 #76712F
analogous
#2F5776 #2F3476 #4E2F76
triadic
#2F3476 #762F34 #34762F
tetradic
#2F3476 #762F57 #76712F #2F764E
square
#2F3476 #762F57 #76712F #2F764E
split-complementary
#2F3476 #764E2F #57762F
monochromatic
#0C0D1E #1E214A #2F3476 #4047A2 #6067C0

Accessibility & contrast

On white

11.21
#2F3476 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2F3476 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3476
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3476#FFFFFF#000000##FFFFFF
##2F34761.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3E78
Deuteranopia (green-blind)
#003875
Tritanopia (blue-blind)
#02434F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f3476;
/* rgb */ color: rgb(47, 52, 118);
/* oklch */ color: oklch(36.0% 0.111 276.0);
Tailwind
colors: {
  custom: {
    50: '#6f6b9e',
    500: '#2f3476',
    950: '#000000',
  },
}
SCSS
$custom: #2f3476;
$custom-light: #6f6b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3476",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 118
  },
  "hsl": {
    "h": 235.775,
    "s": 43.03,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35973,
    "c": 0.11138,
    "h": 276
  },
  "luminance": 0.04368
}

Semantic roles & 50–950 ramp

primary
#2F3476
secondary
#A7A15A
accent
#CA55D3
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2F3476

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

Preview Lab → · Contrast checker → · Palette generator →

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