#2E1C9F#2E1C9F

#2E1C9F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.1% C 0.194 H 276.7°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#2E1C9F
RGBrgb(46, 28, 159)
HSLhsl(248, 70%, 37%)
HSVhsv(248, 82%, 62%)
CMYKcmyk(71.1%, 82.4%, 0%, 37.6%)
CIE-LABlab(23.38, 47.50, -66.63)
CIE-LCHlch(23.38, 81.83, 305.49°)
OKLaboklab(36.08% 0.0225 -0.1925)
OKLCHoklch(36.08% 0.194 276.7)
XYZxyz(7.7979, 3.9138, 33.1387)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1C9F #8D9F1C
analogous
#1C4C9F #2E1C9F #701C9F
triadic
#2E1C9F #9F2E1C #1C9F2E
tetradic
#2E1C9F #9F1C4C #8D9F1C #1C9F70
square
#2E1C9F #9F1C4C #8D9F1C #1C9F70
split-complementary
#2E1C9F #9F701C #4C9F1C
monochromatic
#100A37 #1F136B #2E1C9F #3D25D3 #6854E1

Accessibility & contrast

On white

11.78
#2E1C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2E1C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1C9F
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1C9F#FFFFFF#000000##FFFFFF
##2E1C9F1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e1c9f;
/* rgb */ color: rgb(46, 28, 159);
/* oklch */ color: oklch(36.1% 0.194 276.7);
Tailwind
colors: {
  custom: {
    50: '#795dbd',
    500: '#2e1c9f',
    950: '#000000',
  },
}
SCSS
$custom: #2e1c9f;
$custom-light: #795dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1c9f",
  "rgb": {
    "r": 46,
    "g": 28,
    "b": 159
  },
  "hsl": {
    "h": 248.244,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36075,
    "c": 0.19386,
    "h": 276.7
  },
  "luminance": 0.03915
}

Semantic roles & 50–950 ramp

primary
#2E1C9F
secondary
#B5C453
accent
#ED3BD4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2E1C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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