#2E31A3#2E31A3

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

Color values

HEX#2E31A3
RGBrgb(46, 49, 163)
HSLhsl(238, 56%, 41%)
HSVhsv(238, 72%, 64%)
CMYKcmyk(71.8%, 69.9%, 0%, 36.1%)
CIE-LABlab(27.90, 37.25, -61.60)
CIE-LCHlch(27.90, 71.99, 301.16°)
OKLaboklab(39.4% 0.0108 -0.1781)
OKLCHoklch(39.4% 0.178 273.5)
XYZxyz(8.8337, 5.4209, 35.2240)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E31A3 #A3A02E
analogous
#2E6BA3 #2E31A3 #652EA3
triadic
#2E31A3 #A32E31 #31A32E
tetradic
#2E31A3 #A32E6B #A3A02E #2EA365
square
#2E31A3 #A32E6B #A3A02E #2EA365
split-complementary
#2E31A3 #A3652E #6BA32E
monochromatic
#131444 #212373 #2E31A3 #4447CA #7476D8

Accessibility & contrast

On white

10.07
#2E31A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E31A3
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E31A3#FFFFFF#000000##FFFFFF
##2E31A31.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A6
Deuteranopia (green-blind)
#003CA1
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2e31a3;
/* rgb */ color: rgb(46, 49, 163);
/* oklch */ color: oklch(39.4% 0.178 273.5);
Tailwind
colors: {
  custom: {
    50: '#786abf',
    500: '#2e31a3',
    950: '#000000',
  },
}
SCSS
$custom: #2e31a3;
$custom-light: #786abf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e31a3",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 163
  },
  "hsl": {
    "h": 238.462,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39395,
    "c": 0.17842,
    "h": 273.5
  },
  "luminance": 0.05422
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E31A3

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

Preview Lab → · Contrast checker → · Palette generator →

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