#2E1F9F#2E1F9F

#2E1F9F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.191 H 276.4°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#2E1F9F
RGBrgb(46, 31, 159)
HSLhsl(247, 67%, 37%)
HSVhsv(247, 81%, 62%)
CMYKcmyk(71.1%, 80.5%, 0%, 37.6%)
CIE-LABlab(23.88, 46.06, -65.81)
CIE-LCHlch(23.88, 80.32, 304.99°)
OKLaboklab(36.42% 0.0212 -0.1902)
OKLCHoklch(36.42% 0.191 276.4)
XYZxyz(7.8727, 4.0633, 33.1636)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F9F #909F1F
analogous
#1F509F #2E1F9F #6E1F9F
triadic
#2E1F9F #9F2E1F #1F9F2E
tetradic
#2E1F9F #9F1F50 #909F1F #1F9F6E
square
#2E1F9F #9F1F50 #909F1F #1F9F6E
split-complementary
#2E1F9F #9F6E1F #509F1F
monochromatic
#100B39 #1F156C #2E1F9F #3D29D2 #695ADF

Accessibility & contrast

On white

11.58
#2E1F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1F9F
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F9F#FFFFFF#000000##FFFFFF
##2E1F9F1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1f9f;
/* rgb */ color: rgb(46, 31, 159);
/* oklch */ color: oklch(36.4% 0.191 276.4);
Tailwind
colors: {
  custom: {
    50: '#795ebd',
    500: '#2e1f9f',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f9f;
$custom-light: #795ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f9f",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 247.031,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36419,
    "c": 0.19139,
    "h": 276.4
  },
  "luminance": 0.04064
}

Semantic roles & 50–950 ramp

primary
#2E1F9F
secondary
#B6C357
accent
#EA3ED6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2E1F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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