#2E31A2#2E31A2

#2E31A2 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.3% C 0.177 H 273.5°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#2E31A2
RGBrgb(46, 49, 162)
HSLhsl(238, 56%, 41%)
HSVhsv(238, 72%, 64%)
CMYKcmyk(71.6%, 69.8%, 0%, 36.5%)
CIE-LABlab(27.81, 36.90, -61.16)
CIE-LCHlch(27.81, 71.43, 301.11°)
OKLaboklab(39.3% 0.0109 -0.1768)
OKLCHoklch(39.3% 0.177 273.5)
XYZxyz(8.7444, 5.3853, 34.7540)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E31A2 #A29F2E
analogous
#2E6BA2 #2E31A2 #652EA2
triadic
#2E31A2 #A22E31 #31A22E
tetradic
#2E31A2 #A22E6B #A29F2E #2EA265
square
#2E31A2 #A22E6B #A29F2E #2EA265
split-complementary
#2E31A2 #A2652E #6BA22E
monochromatic
#131443 #202372 #2E31A2 #4347CA #7376D7

Accessibility & contrast

On white

10.11
#2E31A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2E31A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E31A2
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E31A2#FFFFFF#000000##FFFFFF
##2E31A21.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#003CA0
Tritanopia (blue-blind)
#005065
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2e31a2;
/* rgb */ color: rgb(46, 49, 162);
/* oklch */ color: oklch(39.3% 0.177 273.5);
Tailwind
colors: {
  custom: {
    50: '#786abf',
    500: '#2e31a2',
    950: '#000000',
  },
}
SCSS
$custom: #2e31a2;
$custom-light: #786abf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e31a2",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 238.448,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39296,
    "c": 0.17713,
    "h": 273.5
  },
  "luminance": 0.05386
}

Semantic roles & 50–950 ramp

primary
#2E31A2
secondary
#BFBD6D
accent
#DB49DF
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E31A2

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

Preview Lab → · Contrast checker → · Palette generator →

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