#2E2487#2E2487

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

Color values

HEX#2E2487
RGBrgb(46, 36, 135)
HSLhsl(246, 58%, 34%)
HSVhsv(246, 73%, 53%)
CMYKcmyk(65.9%, 73.3%, 0%, 47.1%)
CIE-LABlab(22.27, 35.54, -53.62)
CIE-LCHlch(22.27, 64.33, 303.54°)
OKLaboklab(34.52% 0.0241 -0.1547)
OKLCHoklch(34.52% 0.157 278.8)
XYZxyz(6.1294, 3.5914, 23.2872)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2487 #7D8724
analogous
#244B87 #2E2487 #5F2487
triadic
#2E2487 #872E24 #24872E
tetradic
#2E2487 #87244B #7D8724 #24875F
square
#2E2487 #87244B #7D8724 #24875F
split-complementary
#2E2487 #875F24 #4B8724
monochromatic
#0D0A26 #1E1757 #2E2487 #3E31B7 #6154D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E2487#FFFFFF#000000##FFFFFF
##2E24871.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)
#00398A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e2487;
/* rgb */ color: rgb(46, 36, 135);
/* oklch */ color: oklch(34.5% 0.157 278.8);
Tailwind
colors: {
  custom: {
    50: '#7360ab',
    500: '#2e2487',
    950: '#000000',
  },
}
SCSS
$custom: #2e2487;
$custom-light: #7360ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2487",
  "rgb": {
    "r": 46,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 246.061,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34521,
    "c": 0.1566,
    "h": 278.8
  },
  "luminance": 0.03592
}

Semantic roles & 50–950 ramp

primary
#2E2487
secondary
#ABB551
accent
#E147D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E2487

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

Preview Lab → · Contrast checker → · Palette generator →

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