#2E1F9E#2E1F9E

#2E1F9E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.190 H 276.5°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#2E1F9E
RGBrgb(46, 31, 158)
HSLhsl(247, 67%, 37%)
HSVhsv(247, 80%, 62%)
CMYKcmyk(70.9%, 80.4%, 0%, 38%)
CIE-LABlab(23.77, 45.75, -65.38)
CIE-LCHlch(23.77, 79.80, 304.98°)
OKLaboklab(36.31% 0.0215 -0.189)
OKLCHoklch(36.31% 0.19 276.5)
XYZxyz(7.7862, 4.0287, 32.7084)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F9E #8F9E1F
analogous
#1F4F9E #2E1F9E #6E1F9E
triadic
#2E1F9E #9E2E1F #1F9E2E
tetradic
#2E1F9E #9E1F4F #8F9E1F #1F9E6E
square
#2E1F9E #9E1F4F #8F9E1F #1F9E6E
split-complementary
#2E1F9E #9E6E1F #4F9E1F
monochromatic
#100B38 #1F156B #2E1F9E #3D29D1 #6959DE

Accessibility & contrast

On white

11.63
#2E1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2E1F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F9E
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F9E#FFFFFF#000000##FFFFFF
##2E1F9E1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e1f9e;
/* rgb */ color: rgb(46, 31, 158);
/* oklch */ color: oklch(36.3% 0.190 276.5);
Tailwind
colors: {
  custom: {
    50: '#795ebc',
    500: '#2e1f9e',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f9e;
$custom-light: #795ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f9e",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 247.087,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36306,
    "c": 0.1902,
    "h": 276.5
  },
  "luminance": 0.04029
}

Semantic roles & 50–950 ramp

primary
#2E1F9E
secondary
#B6C256
accent
#EA3ED6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2E1F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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