#2E1F7B#2E1F7B

#2E1F7B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.147 H 282.0°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#2E1F7B
RGBrgb(46, 31, 123)
HSLhsl(250, 60%, 30%)
HSVhsv(250, 75%, 48%)
CMYKcmyk(62.6%, 74.8%, 0%, 51.8%)
CIE-LABlab(20.01, 34.50, -49.76)
CIE-LCHlch(20.01, 60.55, 304.74°)
OKLaboklab(32.54% 0.0304 -0.1434)
OKLCHoklch(32.54% 0.147 282)
XYZxyz(5.1907, 2.9905, 19.0387)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F7B #6C7B1F
analogous
#1F3E7B #2E1F7B #5C1F7B
triadic
#2E1F7B #7B2E1F #1F7B2E
tetradic
#2E1F7B #7B1F3E #6C7B1F #1F7B5C
square
#2E1F7B #7B1F3E #6C7B1F #1F7B5C
split-complementary
#2E1F7B #7B5C1F #3E7B1F
monochromatic
#090619 #1C134A #2E1F7B #402BAC #5B44D0

Accessibility & contrast

On white

13.14
#2E1F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2E1F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F7B
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F7B#FFFFFF#000000##FFFFFF
##2E1F7B1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1f7b;
/* rgb */ color: rgb(46, 31, 123);
/* oklch */ color: oklch(32.5% 0.147 282.0);
Tailwind
colors: {
  custom: {
    50: '#715ca2',
    500: '#2e1f7b',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f7b;
$custom-light: #715ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f7b",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 249.783,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32543,
    "c": 0.14662,
    "h": 282
  },
  "luminance": 0.02991
}

Semantic roles & 50–950 ramp

primary
#2E1F7B
secondary
#9EAE48
accent
#E345C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2E1F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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