#2E23A8#2E23A8

#2E23A8 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.9% C 0.199 H 275.0°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#2E23A8
RGBrgb(46, 35, 168)
HSLhsl(245, 66%, 40%)
HSVhsv(245, 79%, 66%)
CMYKcmyk(72.6%, 79.2%, 0%, 34.1%)
CIE-LABlab(25.59, 46.87, -68.44)
CIE-LCHlch(25.59, 82.95, 304.40°)
OKLaboklab(37.91% 0.0172 -0.1979)
OKLCHoklch(37.91% 0.199 275)
XYZxyz(8.7933, 4.6092, 37.4644)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E23A8 #9DA823
analogous
#235BA8 #2E23A8 #7023A8
triadic
#2E23A8 #A82E23 #23A82E
tetradic
#2E23A8 #A8235B #9DA823 #23A870
square
#2E23A8 #A8235B #9DA823 #23A870
split-complementary
#2E23A8 #A87023 #5BA823
monochromatic
#120E43 #201875 #2E23A8 #4134D5 #7066DF

Accessibility & contrast

On white

10.93
#2E23A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2E23A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E23A8
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E23A8#FFFFFF#000000##FFFFFF
##2E23A81.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AC
Deuteranopia (green-blind)
#0036A6
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e23a8;
/* rgb */ color: rgb(46, 35, 168);
/* oklch */ color: oklch(37.9% 0.199 275.0);
Tailwind
colors: {
  custom: {
    50: '#7b61c3',
    500: '#2e23a8',
    950: '#000000',
  },
}
SCSS
$custom: #2e23a8;
$custom-light: #7b61c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e23a8",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 244.962,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.3791,
    "c": 0.19865,
    "h": 275
  },
  "luminance": 0.0461
}

Semantic roles & 50–950 ramp

primary
#2E23A8
secondary
#BDC562
accent
#E83FDA
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2E23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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