#2E23A9#2E23A9

#2E23A9 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 38.0% C 0.200 H 274.9°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#2E23A9
RGBrgb(46, 35, 169)
HSLhsl(245, 66%, 40%)
HSVhsv(245, 79%, 66%)
CMYKcmyk(72.8%, 79.3%, 0%, 33.7%)
CIE-LABlab(25.70, 47.18, -68.86)
CIE-LCHlch(25.70, 83.47, 304.42°)
OKLaboklab(38.02% 0.0169 -0.1991)
OKLCHoklch(38.02% 0.2 274.9)
XYZxyz(8.8868, 4.6466, 37.9570)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E23A9 #9EA923
analogous
#235BA9 #2E23A9 #7123A9
triadic
#2E23A9 #A92E23 #23A92E
tetradic
#2E23A9 #A9235B #9EA923 #23A971
square
#2E23A9 #A9235B #9EA923 #23A971
split-complementary
#2E23A9 #A97123 #5BA923
monochromatic
#120E44 #201976 #2E23A9 #4134D5 #7167DF

Accessibility & contrast

On white

10.88
#2E23A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2E23A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E23A9
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E23A9#FFFFFF#000000##FFFFFF
##2E23A91.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AD
Deuteranopia (green-blind)
#0037A7
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e23a9;
/* rgb */ color: rgb(46, 35, 169);
/* oklch */ color: oklch(38.0% 0.200 274.9);
Tailwind
colors: {
  custom: {
    50: '#7b61c4',
    500: '#2e23a9',
    950: '#000000',
  },
}
SCSS
$custom: #2e23a9;
$custom-light: #7b61c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e23a9",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 169
  },
  "hsl": {
    "h": 244.925,
    "s": 65.686,
    "l": 40
  },
  "oklch": {
    "l": 0.38021,
    "c": 0.19985,
    "h": 274.9
  },
  "luminance": 0.04647
}

Semantic roles & 50–950 ramp

primary
#2E23A9
secondary
#BDC563
accent
#E93FDB
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2E23A9

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

Preview Lab → · Contrast checker → · Palette generator →

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