#2E1F8C#2E1F8C

#2E1F8C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.168 H 279.0°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#2E1F8C
RGBrgb(46, 31, 140)
HSLhsl(248, 64%, 34%)
HSVhsv(248, 78%, 55%)
CMYKcmyk(67.1%, 77.9%, 0%, 45.1%)
CIE-LABlab(21.78, 40.04, -57.56)
CIE-LCHlch(21.78, 70.12, 304.82°)
OKLaboklab(34.33% 0.0263 -0.1662)
OKLCHoklch(34.33% 0.168 279)
XYZxyz(6.3488, 3.4537, 25.1379)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F8C #7D8C1F
analogous
#1F468C #2E1F8C #641F8C
triadic
#2E1F8C #8C2E1F #1F8C2E
tetradic
#2E1F8C #8C1F46 #7D8C1F #1F8C64
square
#2E1F8C #8C1F46 #7D8C1F #1F8C64
split-complementary
#2E1F8C #8C641F #468C1F
monochromatic
#0D0928 #1E145A #2E1F8C #3E2ABE #614ED8

Accessibility & contrast

On white

12.42
#2E1F8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2E1F8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F8C
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F8C#FFFFFF#000000##FFFFFF
##2E1F8C1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e1f8c;
/* rgb */ color: rgb(46, 31, 140);
/* oklch */ color: oklch(34.3% 0.168 279.0);
Tailwind
colors: {
  custom: {
    50: '#755daf',
    500: '#2e1f8c',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f8c;
$custom-light: #755daf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f8c",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 140
  },
  "hsl": {
    "h": 248.257,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34327,
    "c": 0.16828,
    "h": 279
  },
  "luminance": 0.03454
}

Semantic roles & 50–950 ramp

primary
#2E1F8C
secondary
#ABBB4C
accent
#E741D0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1F8C

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

Preview Lab → · Contrast checker → · Palette generator →

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