#2E31D0#2E31D0

#2E31D0 is a dark, highly saturated blue. Relative luminance 0.073; OKLCH L 44.1% C 0.233 H 270.9°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#2E31D0
RGBrgb(46, 49, 208)
HSLhsl(239, 64%, 50%)
HSVhsv(239, 78%, 82%)
CMYKcmyk(77.9%, 76.4%, 0%, 18.4%)
CIE-LABlab(32.55, 52.31, -80.59)
CIE-LCHlch(32.55, 96.08, 302.98°)
OKLaboklab(44.09% 0.0035 -0.2334)
OKLCHoklch(44.09% 0.233 270.9)
XYZxyz(13.6063, 7.3300, 60.3600)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E31D0 #D0CD2E
analogous
#2E82D0 #2E31D0 #7C2ED0
triadic
#2E31D0 #D02E31 #31D02E
tetradic
#2E31D0 #D02E82 #D0CD2E #2ED07C
square
#2E31D0 #D02E82 #D0CD2E #2ED07C
split-complementary
#2E31D0 #D07C2E #82D02E
monochromatic
#18196C #23259E #2E31D0 #5F62DC #9293E7

Accessibility & contrast

On white

8.51
#2E31D0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2E31D0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E31D0
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E31D0#FFFFFF#000000##FFFFFF
##2E31D01.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055D5
Deuteranopia (green-blind)
#0044CD
Tritanopia (blue-blind)
#00617F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2e31d0;
/* rgb */ color: rgb(46, 49, 208);
/* oklch */ color: oklch(44.1% 0.233 270.9);
Tailwind
colors: {
  custom: {
    50: '#836ce0',
    500: '#2e31d0',
    950: '#000000',
  },
}
SCSS
$custom: #2e31d0;
$custom-light: #836ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e31d0",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 208
  },
  "hsl": {
    "h": 238.889,
    "s": 63.78,
    "l": 49.804
  },
  "oklch": {
    "l": 0.44086,
    "c": 0.23341,
    "h": 270.9
  },
  "luminance": 0.07332
}

Semantic roles & 50–950 ramp

primary
#2E31D0
secondary
#D2D088
accent
#E441E7
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #2E31D0

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

Preview Lab → · Contrast checker → · Palette generator →

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