#2E319A#2E319A

#2E319A is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.167 H 274.1°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#2E319A
RGBrgb(46, 49, 154)
HSLhsl(238, 54%, 39%)
HSVhsv(238, 70%, 60%)
CMYKcmyk(70.1%, 68.2%, 0%, 39.6%)
CIE-LABlab(27.05, 34.09, -57.54)
CIE-LCHlch(27.05, 66.88, 300.65°)
OKLaboklab(38.52% 0.0119 -0.1662)
OKLCHoklch(38.52% 0.167 274.1)
XYZxyz(8.0558, 5.1098, 31.1273)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E319A #9A972E
analogous
#2E679A #2E319A #612E9A
triadic
#2E319A #9A2E31 #319A2E
tetradic
#2E319A #9A2E67 #9A972E #2E9A61
square
#2E319A #9A2E67 #9A972E #2E9A61
split-complementary
#2E319A #9A612E #679A2E
monochromatic
#12133C #20226B #2E319A #3F43C6 #6F71D4

Accessibility & contrast

On white

10.38
#2E319A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2E319A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E319A
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E319A#FFFFFF#000000##FFFFFF
##2E319A1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459D
Deuteranopia (green-blind)
#003B98
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2e319a;
/* rgb */ color: rgb(46, 49, 154);
/* oklch */ color: oklch(38.5% 0.167 274.1);
Tailwind
colors: {
  custom: {
    50: '#7669b9',
    500: '#2e319a',
    950: '#000000',
  },
}
SCSS
$custom: #2e319a;
$custom-light: #7669b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e319a",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 154
  },
  "hsl": {
    "h": 238.333,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38515,
    "c": 0.16662,
    "h": 274.1
  },
  "luminance": 0.05111
}

Semantic roles & 50–950 ramp

primary
#2E319A
secondary
#BBB969
accent
#D94ADD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E319A

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

Preview Lab → · Contrast checker → · Palette generator →

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