#2E31AF#2E31AF

#2E31AF is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.6% C 0.194 H 272.7°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#2E31AF
RGBrgb(46, 49, 175)
HSLhsl(239, 58%, 43%)
HSVhsv(239, 74%, 69%)
CMYKcmyk(73.7%, 72%, 0%, 31.4%)
CIE-LABlab(29.09, 41.39, -66.87)
CIE-LCHlch(29.09, 78.65, 301.76°)
OKLaboklab(40.6% 0.0091 -0.1935)
OKLCHoklch(40.6% 0.194 272.7)
XYZxyz(9.9603, 5.8716, 41.1575)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E31AF #AFAC2E
analogous
#2E71AF #2E31AF #6B2EAF
triadic
#2E31AF #AF2E31 #31AF2E
tetradic
#2E31AF #AF2E71 #AFAC2E #2EAF6B
square
#2E31AF #AF2E71 #AFAC2E #2EAF6B
split-complementary
#2E31AF #AF6B2E #71AF2E
monochromatic
#15164E #21237F #2E31AF #4B4ED0 #7B7DDC

Accessibility & contrast

On white

9.66
#2E31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2E31AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E31AF
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E31AF#FFFFFF#000000##FFFFFF
##2E31AF1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#003EAD
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2e31af;
/* rgb */ color: rgb(46, 49, 175);
/* oklch */ color: oklch(40.6% 0.194 272.7);
Tailwind
colors: {
  custom: {
    50: '#7b6ac8',
    500: '#2e31af',
    950: '#000000',
  },
}
SCSS
$custom: #2e31af;
$custom-light: #7b6ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e31af",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 238.605,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40603,
    "c": 0.19369,
    "h": 272.7
  },
  "luminance": 0.05873
}

Semantic roles & 50–950 ramp

primary
#2E31AF
secondary
#C5C374
accent
#DE46E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2E31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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