#2E2391#2E2391

#2E2391 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.171 H 277.6°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#2E2391
RGBrgb(46, 35, 145)
HSLhsl(246, 61%, 35%)
HSVhsv(246, 76%, 57%)
CMYKcmyk(68.3%, 75.9%, 0%, 43.1%)
CIE-LABlab(23.09, 39.45, -58.50)
CIE-LCHlch(23.09, 70.56, 303.99°)
OKLaboklab(35.41% 0.0227 -0.169)
OKLCHoklch(35.41% 0.171 277.6)
XYZxyz(6.8369, 3.8267, 27.1609)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2391 #869123
analogous
#234F91 #2E2391 #652391
triadic
#2E2391 #912E23 #23912E
tetradic
#2E2391 #91234F #869123 #239165
square
#2E2391 #91234F #869123 #239165
split-complementary
#2E2391 #916523 #4F9123
monochromatic
#0F0B2E #1E1760 #2E2391 #3E2FC2 #6458D7

Accessibility & contrast

On white

11.90
#2E2391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2E2391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2391
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2391#FFFFFF#000000##FFFFFF
##2E23911.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00328F
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e2391;
/* rgb */ color: rgb(46, 35, 145);
/* oklch */ color: oklch(35.4% 0.171 277.6);
Tailwind
colors: {
  custom: {
    50: '#7560b2',
    500: '#2e2391',
    950: '#000000',
  },
}
SCSS
$custom: #2e2391;
$custom-light: #7560b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2391",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 246,
    "s": 61.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35411,
    "c": 0.17051,
    "h": 277.6
  },
  "luminance": 0.03827
}

Semantic roles & 50–950 ramp

primary
#2E2391
secondary
#B1BB55
accent
#E444D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2E2391

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

Preview Lab → · Contrast checker → · Palette generator →

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