#2E2A76#2E2A76

#2E2A76 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.126 H 279.7°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#2E2A76
RGBrgb(46, 42, 118)
HSLhsl(243, 48%, 31%)
HSVhsv(243, 64%, 46%)
CMYKcmyk(61%, 64.4%, 0%, 53.7%)
CIE-LABlab(22.10, 25.86, -43.14)
CIE-LCHlch(22.10, 50.29, 300.94°)
OKLaboklab(33.92% 0.0211 -0.124)
OKLCHoklch(33.92% 0.126 279.7)
XYZxyz(5.2237, 3.5444, 17.5449)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2A76 #72762A
analogous
#2A4C76 #2E2A76 #542A76
triadic
#2E2A76 #762E2A #2A762E
tetradic
#2E2A76 #762A4C #72762A #2A7654
square
#2E2A76 #762A4C #72762A #2A7654
split-complementary
#2E2A76 #76542A #4C762A
monochromatic
#0B0A1C #1C1A49 #2E2A76 #403AA3 #5D57C3

Accessibility & contrast

On white

12.29
#2E2A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2E2A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2A76
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2A76#FFFFFF#000000##FFFFFF
##2E2A761.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003878
Deuteranopia (green-blind)
#003274
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e2a76;
/* rgb */ color: rgb(46, 42, 118);
/* oklch */ color: oklch(33.9% 0.126 279.7);
Tailwind
colors: {
  custom: {
    50: '#6f649e',
    500: '#2e2a76',
    950: '#000000',
  },
}
SCSS
$custom: #2e2a76;
$custom-light: #6f649e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2a76",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 118
  },
  "hsl": {
    "h": 243.158,
    "s": 47.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33915,
    "c": 0.12578,
    "h": 279.7
  },
  "luminance": 0.03545
}

Semantic roles & 50–950 ramp

primary
#2E2A76
secondary
#A3A854
accent
#D751D0
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E2A76

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

Preview Lab → · Contrast checker → · Palette generator →

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