#2F2A78#2F2A78

#2F2A78 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.128 H 280.0°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#2F2A78
RGBrgb(47, 42, 120)
HSLhsl(244, 48%, 32%)
HSVhsv(244, 65%, 47%)
CMYKcmyk(60.8%, 65%, 0%, 52.9%)
CIE-LABlab(22.36, 26.75, -43.99)
CIE-LCHlch(22.36, 51.49, 301.30°)
OKLaboklab(34.18% 0.0223 -0.1265)
OKLCHoklch(34.18% 0.128 280)
XYZxyz(5.3894, 3.6160, 18.1796)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A78 #73782A
analogous
#2A4C78 #2F2A78 #562A78
triadic
#2F2A78 #782F2A #2A782F
tetradic
#2F2A78 #782A4C #73782A #2A7856
square
#2F2A78 #782A4C #73782A #2A7856
split-complementary
#2F2A78 #78562A #4C782A
monochromatic
#0B0A1D #1D1A4B #2F2A78 #413AA5 #5F58C5

Accessibility & contrast

On white

12.19
#2F2A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2F2A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A78
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A78#FFFFFF#000000##FFFFFF
##2F2A781.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#003276
Tritanopia (blue-blind)
#013D4C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f2a78;
/* rgb */ color: rgb(47, 42, 120);
/* oklch */ color: oklch(34.2% 0.128 280.0);
Tailwind
colors: {
  custom: {
    50: '#7064a0',
    500: '#2f2a78',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a78;
$custom-light: #7064a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a78",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 243.846,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34176,
    "c": 0.12845,
    "h": 280
  },
  "luminance": 0.03616
}

Semantic roles & 50–950 ramp

primary
#2F2A78
secondary
#A4AA54
accent
#D850CF
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050F
muted
#7B7A7E

Preview Lab

Preview with #2F2A78

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

Preview Lab → · Contrast checker → · Palette generator →

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