#2E319F#2E319F

#2E319F is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.173 H 273.7°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#2E319F
RGBrgb(46, 49, 159)
HSLhsl(238, 55%, 40%)
HSVhsv(238, 71%, 62%)
CMYKcmyk(71.1%, 69.2%, 0%, 37.6%)
CIE-LABlab(27.52, 35.85, -59.81)
CIE-LCHlch(27.52, 69.73, 300.94°)
OKLaboklab(39% 0.0113 -0.1728)
OKLCHoklch(39% 0.173 273.7)
XYZxyz(8.4809, 5.2799, 33.3663)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E319F #9F9C2E
analogous
#2E699F #2E319F #632E9F
triadic
#2E319F #9F2E31 #319F2E
tetradic
#2E319F #9F2E69 #9F9C2E #2E9F63
square
#2E319F #9F2E69 #9F9C2E #2E9F63
split-complementary
#2E319F #9F632E #699F2E
monochromatic
#131440 #202270 #2E319F #4245C8 #7174D6

Accessibility & contrast

On white

10.21
#2E319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2E319F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E319F
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E319F#FFFFFF#000000##FFFFFF
##2E319F1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#003C9D
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2e319f;
/* rgb */ color: rgb(46, 49, 159);
/* oklch */ color: oklch(39.0% 0.173 273.7);
Tailwind
colors: {
  custom: {
    50: '#776abc',
    500: '#2e319f',
    950: '#000000',
  },
}
SCSS
$custom: #2e319f;
$custom-light: #776abc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e319f",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 238.407,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39001,
    "c": 0.17322,
    "h": 273.7
  },
  "luminance": 0.05281
}

Semantic roles & 50–950 ramp

primary
#2E319F
secondary
#BEBB6B
accent
#DA49DE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E319F

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

Preview Lab → · Contrast checker → · Palette generator →

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