#2E23A0#2E23A0

#2E23A0 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.0% C 0.189 H 275.8°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#2E23A0
RGBrgb(46, 35, 160)
HSLhsl(245, 64%, 38%)
HSVhsv(245, 78%, 63%)
CMYKcmyk(71.2%, 78.1%, 0%, 37.3%)
CIE-LABlab(24.70, 44.32, -65.05)
CIE-LCHlch(24.70, 78.72, 304.27°)
OKLaboklab(37.03% 0.0191 -0.1881)
OKLCHoklch(37.03% 0.189 275.8)
XYZxyz(8.0708, 4.3202, 33.6594)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E23A0 #95A023
analogous
#2356A0 #2E23A0 #6C23A0
triadic
#2E23A0 #A02E23 #23A02E
tetradic
#2E23A0 #A02356 #95A023 #23A06C
square
#2E23A0 #A02356 #95A023 #23A06C
split-complementary
#2E23A0 #A06C23 #56A023
monochromatic
#110D3C #20186E #2E23A0 #3D2FD1 #6C61DC

Accessibility & contrast

On white

11.26
#2E23A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2E23A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E23A0
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E23A0#FFFFFF#000000##FFFFFF
##2E23A01.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A4
Deuteranopia (green-blind)
#00359E
Tritanopia (blue-blind)
#004861
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2e23a0;
/* rgb */ color: rgb(46, 35, 160);
/* oklch */ color: oklch(37.0% 0.189 275.8);
Tailwind
colors: {
  custom: {
    50: '#7961bd',
    500: '#2e23a0',
    950: '#000000',
  },
}
SCSS
$custom: #2e23a0;
$custom-light: #7961bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e23a0",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 160
  },
  "hsl": {
    "h": 245.28,
    "s": 64.103,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37027,
    "c": 0.18904,
    "h": 275.8
  },
  "luminance": 0.04321
}

Semantic roles & 50–950 ramp

primary
#2E23A0
secondary
#B9C15D
accent
#E741D8
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2E23A0

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

Preview Lab → · Contrast checker → · Palette generator →

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