#2E1F9C#2E1F9C

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

Color values

HEX#2E1F9C
RGBrgb(46, 31, 156)
HSLhsl(247, 67%, 37%)
HSVhsv(247, 80%, 61%)
CMYKcmyk(70.5%, 80.1%, 0%, 38.8%)
CIE-LABlab(23.54, 45.12, -64.53)
CIE-LCHlch(23.54, 78.74, 304.96°)
OKLaboklab(36.08% 0.0221 -0.1865)
OKLCHoklch(36.08% 0.188 276.7)
XYZxyz(7.6155, 3.9604, 31.8091)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F9C #8D9C1F
analogous
#1F4F9C #2E1F9C #6D1F9C
triadic
#2E1F9C #9C2E1F #1F9C2E
tetradic
#2E1F9C #9C1F4F #8D9C1F #1F9C6D
square
#2E1F9C #9C1F4F #8D9C1F #1F9C6D
split-complementary
#2E1F9C #9C6D1F #4F9C1F
monochromatic
#100B36 #1F1569 #2E1F9C #3D29CF #6858DE

Accessibility & contrast

On white

11.72
#2E1F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2E1F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F9C
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F9C#FFFFFF#000000##FFFFFF
##2E1F9C1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00339A
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e1f9c;
/* rgb */ color: rgb(46, 31, 156);
/* oklch */ color: oklch(36.1% 0.188 276.7);
Tailwind
colors: {
  custom: {
    50: '#785eba',
    500: '#2e1f9c',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f9c;
$custom-light: #785eba;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f9c",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 247.2,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36083,
    "c": 0.18781,
    "h": 276.7
  },
  "luminance": 0.03961
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E1F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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