#2E23A1#2E23A1

#2E23A1 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.1% C 0.190 H 275.7°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#2E23A1
RGBrgb(46, 35, 161)
HSLhsl(245, 64%, 38%)
HSVhsv(245, 78%, 63%)
CMYKcmyk(71.4%, 78.3%, 0%, 36.9%)
CIE-LABlab(24.81, 44.64, -65.48)
CIE-LCHlch(24.81, 79.25, 304.29°)
OKLaboklab(37.14% 0.0189 -0.1893)
OKLCHoklch(37.14% 0.19 275.7)
XYZxyz(8.1587, 4.3553, 34.1220)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E23A1 #96A123
analogous
#2357A1 #2E23A1 #6D23A1
triadic
#2E23A1 #A12E23 #23A12E
tetradic
#2E23A1 #A12357 #96A123 #23A16D
square
#2E23A1 #A12357 #96A123 #23A16D
split-complementary
#2E23A1 #A16D23 #57A123
monochromatic
#110D3C #20186F #2E23A1 #3E2FD2 #6C62DD

Accessibility & contrast

On white

11.22
#2E23A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2E23A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E23A1
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E23A1#FFFFFF#000000##FFFFFF
##2E23A11.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#004961
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2e23a1;
/* rgb */ color: rgb(46, 35, 161);
/* oklch */ color: oklch(37.1% 0.190 275.7);
Tailwind
colors: {
  custom: {
    50: '#7961be',
    500: '#2e23a1',
    950: '#000000',
  },
}
SCSS
$custom: #2e23a1;
$custom-light: #7961be;
$custom-dark: #000000;
JSON
{
  "hex": "#2e23a1",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 161
  },
  "hsl": {
    "h": 245.238,
    "s": 64.286,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37136,
    "c": 0.19026,
    "h": 275.7
  },
  "luminance": 0.04356
}

Semantic roles & 50–950 ramp

primary
#2E23A1
secondary
#B9C25E
accent
#E741D9
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2E23A1

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

Preview Lab → · Contrast checker → · Palette generator →

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