#2E1F7D#2E1F7D

#2E1F7D is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.149 H 281.6°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#2E1F7D
RGBrgb(46, 31, 125)
HSLhsl(250, 60%, 31%)
HSVhsv(250, 75%, 49%)
CMYKcmyk(63.2%, 75.2%, 0%, 51%)
CIE-LABlab(20.21, 35.16, -50.70)
CIE-LCHlch(20.21, 61.70, 304.74°)
OKLaboklab(32.75% 0.03 -0.1462)
OKLCHoklch(32.75% 0.149 281.6)
XYZxyz(5.3172, 3.0411, 19.7049)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F7D #6E7D1F
analogous
#1F3F7D #2E1F7D #5D1F7D
triadic
#2E1F7D #7D2E1F #1F7D2E
tetradic
#2E1F7D #7D1F3F #6E7D1F #1F7D5D
square
#2E1F7D #7D1F3F #6E7D1F #1F7D5D
split-complementary
#2E1F7D #7D5D1F #3F7D1F
monochromatic
#0A071B #1C134C #2E1F7D #402BAE #5C45D1

Accessibility & contrast

On white

13.06
#2E1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2E1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F7D
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F7D#FFFFFF#000000##FFFFFF
##2E1F7D1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e1f7d;
/* rgb */ color: rgb(46, 31, 125);
/* oklch */ color: oklch(32.7% 0.149 281.6);
Tailwind
colors: {
  custom: {
    50: '#715ca4',
    500: '#2e1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f7d;
$custom-light: #715ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f7d",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 249.574,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32747,
    "c": 0.14922,
    "h": 281.6
  },
  "luminance": 0.03041
}

Semantic roles & 50–950 ramp

primary
#2E1F7D
secondary
#9FB048
accent
#E344CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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