#2E317D#2E317D

#2E317D is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.9% C 0.126 H 276.3°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#2E317D
RGBrgb(46, 49, 125)
HSLhsl(238, 46%, 34%)
HSVhsv(238, 63%, 49%)
CMYKcmyk(63.2%, 60.8%, 0%, 51%)
CIE-LABlab(24.51, 23.67, -43.68)
CIE-LCHlch(24.51, 49.68, 298.45°)
OKLaboklab(35.87% 0.0138 -0.1255)
OKLCHoklch(35.87% 0.126 276.3)
XYZxyz(5.9255, 4.2577, 19.9076)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E317D #7D7A2E
analogous
#2E587D #2E317D #522E7D
triadic
#2E317D #7D2E31 #317D2E
tetradic
#2E317D #7D2E58 #7D7A2E #2E7D52
square
#2E317D #7D2E58 #7D7A2E #2E7D52
split-complementary
#2E317D #7D522E #587D2E
monochromatic
#0D0E24 #1E1F50 #2E317D #3E43AA #6164C5

Accessibility & contrast

On white

11.34
#2E317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2E317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E317D
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E317D#FFFFFF#000000##FFFFFF
##2E317D1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e317d;
/* rgb */ color: rgb(46, 49, 125);
/* oklch */ color: oklch(35.9% 0.126 276.3);
Tailwind
colors: {
  custom: {
    50: '#7069a3',
    500: '#2e317d',
    950: '#000000',
  },
}
SCSS
$custom: #2e317d;
$custom-light: #7069a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e317d",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 237.722,
    "s": 46.199,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35867,
    "c": 0.12629,
    "h": 276.3
  },
  "luminance": 0.04258
}

Semantic roles & 50–950 ramp

primary
#2E317D
secondary
#ABA85B
accent
#D152D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2E317D

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

Preview Lab → · Contrast checker → · Palette generator →

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