#2E1F9D#2E1F9D

#2E1F9D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.189 H 276.6°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#2E1F9D
RGBrgb(46, 31, 157)
HSLhsl(247, 67%, 37%)
HSVhsv(247, 80%, 62%)
CMYKcmyk(70.7%, 80.3%, 0%, 38.4%)
CIE-LABlab(23.65, 45.44, -64.96)
CIE-LCHlch(23.65, 79.27, 304.97°)
OKLaboklab(36.19% 0.0218 -0.1877)
OKLCHoklch(36.19% 0.189 276.6)
XYZxyz(7.7005, 3.9944, 32.2569)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F9D #8E9D1F
analogous
#1F4F9D #2E1F9D #6D1F9D
triadic
#2E1F9D #9D2E1F #1F9D2E
tetradic
#2E1F9D #9D1F4F #8E9D1F #1F9D6D
square
#2E1F9D #9D1F4F #8E9D1F #1F9D6D
split-complementary
#2E1F9D #9D6D1F #4F9D1F
monochromatic
#100B37 #1F156A #2E1F9D #3D29D0 #6858DE

Accessibility & contrast

On white

11.67
#2E1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2E1F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F9D
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F9D#FFFFFF#000000##FFFFFF
##2E1F9D1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA0
Deuteranopia (green-blind)
#00339B
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e1f9d;
/* rgb */ color: rgb(46, 31, 157);
/* oklch */ color: oklch(36.2% 0.189 276.6);
Tailwind
colors: {
  custom: {
    50: '#785ebb',
    500: '#2e1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f9d;
$custom-light: #785ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f9d",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 247.143,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36194,
    "c": 0.18901,
    "h": 276.6
  },
  "luminance": 0.03995
}

Semantic roles & 50–950 ramp

primary
#2E1F9D
secondary
#B5C256
accent
#EA3ED5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2E1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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