#2E319D#2E319D

#2E319D is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.171 H 273.9°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#2E319D
RGBrgb(46, 49, 157)
HSLhsl(238, 55%, 40%)
HSVhsv(238, 71%, 62%)
CMYKcmyk(70.7%, 68.8%, 0%, 38.4%)
CIE-LABlab(27.33, 35.15, -58.90)
CIE-LCHlch(27.33, 68.59, 300.83°)
OKLaboklab(38.81% 0.0115 -0.1702)
OKLCHoklch(38.81% 0.171 273.9)
XYZxyz(8.3088, 5.2110, 32.4597)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E319D #9D9A2E
analogous
#2E699D #2E319D #622E9D
triadic
#2E319D #9D2E31 #319D2E
tetradic
#2E319D #9D2E69 #9D9A2E #2E9D62
square
#2E319D #9D2E69 #9D9A2E #2E9D62
split-complementary
#2E319D #9D622E #699D2E
monochromatic
#12133E #20226E #2E319D #4145C7 #7073D5

Accessibility & contrast

On white

10.28
#2E319D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2E319D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E319D
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E319D#FFFFFF#000000##FFFFFF
##2E319D1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#003B9B
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2e319d;
/* rgb */ color: rgb(46, 49, 157);
/* oklch */ color: oklch(38.8% 0.171 273.9);
Tailwind
colors: {
  custom: {
    50: '#776abb',
    500: '#2e319d',
    950: '#000000',
  },
}
SCSS
$custom: #2e319d;
$custom-light: #776abb;
$custom-dark: #000000;
JSON
{
  "hex": "#2e319d",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 157
  },
  "hsl": {
    "h": 238.378,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38806,
    "c": 0.17059,
    "h": 273.9
  },
  "luminance": 0.05212
}

Semantic roles & 50–950 ramp

primary
#2E319D
secondary
#BDBA6A
accent
#DA4ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E319D

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

Preview Lab → · Contrast checker → · Palette generator →

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