#2E23A4#2E23A4

#2E23A4 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.5% C 0.194 H 275.4°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#2E23A4
RGBrgb(46, 35, 164)
HSLhsl(245, 65%, 39%)
HSVhsv(245, 79%, 64%)
CMYKcmyk(72%, 78.7%, 0%, 35.7%)
CIE-LABlab(25.14, 45.60, -66.76)
CIE-LCHlch(25.14, 80.84, 304.34°)
OKLaboklab(37.47% 0.0182 -0.193)
OKLCHoklch(37.47% 0.194 275.4)
XYZxyz(8.4264, 4.4624, 35.5320)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E23A4 #99A423
analogous
#2359A4 #2E23A4 #6F23A4
triadic
#2E23A4 #A42E23 #23A42E
tetradic
#2E23A4 #A42359 #99A423 #23A46F
square
#2E23A4 #A42359 #99A423 #23A46F
split-complementary
#2E23A4 #A46F23 #59A423
monochromatic
#120D3F #201872 #2E23A4 #3F31D3 #6E64DE

Accessibility & contrast

On white

11.10
#2E23A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2E23A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E23A4
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E23A4#FFFFFF#000000##FFFFFF
##2E23A41.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A8
Deuteranopia (green-blind)
#0036A2
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2e23a4;
/* rgb */ color: rgb(46, 35, 164);
/* oklch */ color: oklch(37.5% 0.194 275.4);
Tailwind
colors: {
  custom: {
    50: '#7a61c0',
    500: '#2e23a4',
    950: '#000000',
  },
}
SCSS
$custom: #2e23a4;
$custom-light: #7a61c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e23a4",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 164
  },
  "hsl": {
    "h": 245.116,
    "s": 64.824,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37467,
    "c": 0.19387,
    "h": 275.4
  },
  "luminance": 0.04463
}

Semantic roles & 50–950 ramp

primary
#2E23A4
secondary
#BBC360
accent
#E840D9
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2E23A4

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

Preview Lab → · Contrast checker → · Palette generator →

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