#2E2788#2E2788

#2E2788 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.154 H 278.1°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#2E2788
RGBrgb(46, 39, 136)
HSLhsl(244, 55%, 34%)
HSVhsv(244, 71%, 53%)
CMYKcmyk(66.2%, 71.3%, 0%, 46.7%)
CIE-LABlab(23.03, 34.06, -53.00)
CIE-LCHlch(23.03, 63.00, 302.73°)
OKLaboklab(35.09% 0.0217 -0.1529)
OKLCHoklch(35.09% 0.154 278.1)
XYZxyz(6.2947, 3.8089, 23.6913)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2788 #818827
analogous
#275188 #2E2788 #5F2788
triadic
#2E2788 #882E27 #27882E
tetradic
#2E2788 #882751 #818827 #27885F
square
#2E2788 #882751 #818827 #27885F
split-complementary
#2E2788 #885F27 #518827
monochromatic
#0E0C29 #1E1958 #2E2788 #3E35B8 #625AD0

Accessibility & contrast

On white

11.92
#2E2788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2E2788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2788
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2788#FFFFFF#000000##FFFFFF
##2E27881.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003386
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e2788;
/* rgb */ color: rgb(46, 39, 136);
/* oklch */ color: oklch(35.1% 0.154 278.1);
Tailwind
colors: {
  custom: {
    50: '#7362ac',
    500: '#2e2788',
    950: '#000000',
  },
}
SCSS
$custom: #2e2788;
$custom-light: #7362ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2788",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 136
  },
  "hsl": {
    "h": 244.33,
    "s": 55.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35093,
    "c": 0.15447,
    "h": 278.1
  },
  "luminance": 0.03809
}

Semantic roles & 50–950 ramp

primary
#2E2788
secondary
#AEB556
accent
#DF49D4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E2788

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

Preview Lab → · Contrast checker → · Palette generator →

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