#2E31E3#2E31E3

#2E31E3 is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 46.2% C 0.255 H 270.0°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#2E31E3
RGBrgb(46, 49, 227)
HSLhsl(239, 76%, 54%)
HSVhsv(239, 80%, 89%)
CMYKcmyk(79.7%, 78.4%, 0%, 11%)
CIE-LABlab(34.64, 58.27, -88.06)
CIE-LCHlch(34.64, 105.60, 303.49°)
OKLaboklab(46.17% 0 -0.255)
OKLCHoklch(46.17% 0.255 270)
XYZxyz(16.0854, 8.3217, 73.4166)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E31E3 #E3E02E
analogous
#2E8BE3 #2E31E3 #862EE3
triadic
#2E31E3 #E32E31 #31E32E
tetradic
#2E31E3 #E32E8B #E3E02E #2EE386
square
#2E31E3 #E32E8B #E3E02E #2EE386
split-complementary
#2E31E3 #E3862E #8BE32E
monochromatic
#121485 #191CBB #2E31E3 #6466EA #9A9BF1

Accessibility & contrast

On white

7.88
#2E31E3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2E31E3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E31E3
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E31E3#FFFFFF#000000##FFFFFF
##2E31E31.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BE8
Deuteranopia (green-blind)
#0048E0
Tritanopia (blue-blind)
#00688A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2e31e3;
/* rgb */ color: rgb(46, 49, 227);
/* oklch */ color: oklch(46.2% 0.255 270.0);
Tailwind
colors: {
  custom: {
    50: '#876ded',
    500: '#2e31e3',
    950: '#000000',
  },
}
SCSS
$custom: #2e31e3;
$custom-light: #876ded;
$custom-dark: #000000;
JSON
{
  "hex": "#2e31e3",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 227
  },
  "hsl": {
    "h": 239.006,
    "s": 76.371,
    "l": 53.529
  },
  "oklch": {
    "l": 0.46169,
    "c": 0.25502,
    "h": 270
  },
  "luminance": 0.08324
}

Semantic roles & 50–950 ramp

primary
#2E31E3
secondary
#DDDC90
accent
#F035F3
background
#F9F6FE
surface
#F2ECFD
border
#CCC7D5
text
#0E0717
muted
#7E7A85

Preview Lab

Preview with #2E31E3

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

Preview Lab → · Contrast checker → · Palette generator →

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