#2E319C#2E319C

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

Color values

HEX#2E319C
RGBrgb(46, 49, 156)
HSLhsl(238, 54%, 40%)
HSVhsv(238, 71%, 61%)
CMYKcmyk(70.5%, 68.6%, 0%, 38.8%)
CIE-LABlab(27.23, 34.80, -58.45)
CIE-LCHlch(27.23, 68.02, 300.77°)
OKLaboklab(38.71% 0.0117 -0.1689)
OKLCHoklch(38.71% 0.169 273.9)
XYZxyz(8.2238, 5.1770, 32.0119)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E319C #9C992E
analogous
#2E689C #2E319C #622E9C
triadic
#2E319C #9C2E31 #319C2E
tetradic
#2E319C #9C2E68 #9C992E #2E9C62
square
#2E319C #9C2E68 #9C992E #2E9C62
split-complementary
#2E319C #9C622E #689C2E
monochromatic
#12133D #20226D #2E319C #4044C7 #7072D5

Accessibility & contrast

On white

10.32
#2E319C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E319C
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E319C#FFFFFF#000000##FFFFFF
##2E319C1.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#003B9A
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2e319c;
/* rgb */ color: rgb(46, 49, 156);
/* oklch */ color: oklch(38.7% 0.169 273.9);
Tailwind
colors: {
  custom: {
    50: '#7769ba',
    500: '#2e319c',
    950: '#000000',
  },
}
SCSS
$custom: #2e319c;
$custom-light: #7769ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2e319c",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 156
  },
  "hsl": {
    "h": 238.364,
    "s": 54.455,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38709,
    "c": 0.16927,
    "h": 273.9
  },
  "luminance": 0.05178
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E319C

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

Preview Lab → · Contrast checker → · Palette generator →

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