#2E2B78#2E2B78

#2E2B78 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.127 H 279.0°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#2E2B78
RGBrgb(46, 43, 120)
HSLhsl(242, 47%, 32%)
HSVhsv(242, 64%, 47%)
CMYKcmyk(61.7%, 64.2%, 0%, 52.9%)
CIE-LABlab(22.53, 25.90, -43.72)
CIE-LCHlch(22.53, 50.82, 300.64°)
OKLaboklab(34.28% 0.02 -0.1257)
OKLCHoklch(34.28% 0.127 279)
XYZxyz(5.3797, 3.6643, 18.1894)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2B78 #75782B
analogous
#2B4F78 #2E2B78 #552B78
triadic
#2E2B78 #782E2B #2B782E
tetradic
#2E2B78 #782B4F #75782B #2B7855
square
#2E2B78 #782B4F #75782B #2B7855
split-complementary
#2E2B78 #78552B #4F782B
monochromatic
#0B0B1E #1D1B4B #2E2B78 #3F3BA5 #5E5AC4

Accessibility & contrast

On white

12.12
#2E2B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2E2B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2B78
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2B78#FFFFFF#000000##FFFFFF
##2E2B781.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397A
Deuteranopia (green-blind)
#003376
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e2b78;
/* rgb */ color: rgb(46, 43, 120);
/* oklch */ color: oklch(34.3% 0.127 279.0);
Tailwind
colors: {
  custom: {
    50: '#6f64a0',
    500: '#2e2b78',
    950: '#000000',
  },
}
SCSS
$custom: #2e2b78;
$custom-light: #6f64a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2b78",
  "rgb": {
    "r": 46,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 242.338,
    "s": 47.239,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3428,
    "c": 0.12729,
    "h": 279
  },
  "luminance": 0.03665
}

Semantic roles & 50–950 ramp

primary
#2E2B78
secondary
#A6AA55
accent
#D751D2
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050F
muted
#7B7A7E

Preview Lab

Preview with #2E2B78

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

Preview Lab → · Contrast checker → · Palette generator →

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