#2E31B2#2E31B2

#2E31B2 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.9% C 0.197 H 272.5°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#2E31B2
RGBrgb(46, 49, 178)
HSLhsl(239, 59%, 44%)
HSVhsv(239, 74%, 70%)
CMYKcmyk(74.2%, 72.5%, 0%, 30.2%)
CIE-LABlab(29.39, 42.41, -68.17)
CIE-LCHlch(29.39, 80.28, 301.89°)
OKLaboklab(40.91% 0.0086 -0.1972)
OKLCHoklch(40.91% 0.197 272.5)
XYZxyz(10.2582, 5.9908, 42.7266)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E31B2 #B2AF2E
analogous
#2E73B2 #2E31B2 #6D2EB2
triadic
#2E31B2 #B22E31 #31B22E
tetradic
#2E31B2 #B22E73 #B2AF2E #2EB26D
square
#2E31B2 #B22E73 #B2AF2E #2EB26D
split-complementary
#2E31B2 #B26D2E #73B22E
monochromatic
#151651 #212481 #2E31B2 #4C4FD1 #7D7FDD

Accessibility & contrast

On white

9.55
#2E31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2E31B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E31B2
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E31B2#FFFFFF#000000##FFFFFF
##2E31B21.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB6
Deuteranopia (green-blind)
#003FB0
Tritanopia (blue-blind)
#00566E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2e31b2;
/* rgb */ color: rgb(46, 49, 178);
/* oklch */ color: oklch(40.9% 0.197 272.5);
Tailwind
colors: {
  custom: {
    50: '#7c6aca',
    500: '#2e31b2',
    950: '#000000',
  },
}
SCSS
$custom: #2e31b2;
$custom-light: #7c6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#2e31b2",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 238.636,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40911,
    "c": 0.19743,
    "h": 272.5
  },
  "luminance": 0.05992
}

Semantic roles & 50–950 ramp

primary
#2E31B2
secondary
#C6C476
accent
#DF46E2
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2E31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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