#2E2A78#2E2A78

#2E2A78 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.129 H 279.4°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#2E2A78
RGBrgb(46, 42, 120)
HSLhsl(243, 48%, 32%)
HSVhsv(243, 65%, 47%)
CMYKcmyk(61.7%, 65%, 0%, 52.9%)
CIE-LABlab(22.28, 26.56, -44.13)
CIE-LCHlch(22.28, 51.51, 301.04°)
OKLaboklab(34.09% 0.021 -0.1269)
OKLCHoklch(34.09% 0.129 279.4)
XYZxyz(5.3438, 3.5925, 18.1775)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2A78 #74782A
analogous
#2A4D78 #2E2A78 #552A78
triadic
#2E2A78 #782E2A #2A782E
tetradic
#2E2A78 #782A4D #74782A #2A7855
square
#2E2A78 #782A4D #74782A #2A7855
split-complementary
#2E2A78 #78552A #4D782A
monochromatic
#0B0A1D #1D1A4B #2E2A78 #3F3AA5 #5D58C5

Accessibility & contrast

On white

12.22
#2E2A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2A78
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2A78#FFFFFF#000000##FFFFFF
##2E2A781.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e2a78;
/* rgb */ color: rgb(46, 42, 120);
/* oklch */ color: oklch(34.1% 0.129 279.4);
Tailwind
colors: {
  custom: {
    50: '#6f64a0',
    500: '#2e2a78',
    950: '#000000',
  },
}
SCSS
$custom: #2e2a78;
$custom-light: #6f64a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2a78",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 243.077,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34094,
    "c": 0.12865,
    "h": 279.4
  },
  "luminance": 0.03593
}

Semantic roles & 50–950 ramp

primary
#2E2A78
secondary
#A5AA54
accent
#D850D1
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050F
muted
#7B797E

Preview Lab

Preview with #2E2A78

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

Preview Lab → · Contrast checker → · Palette generator →

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