#2E23A3#2E23A3

#2E23A3 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.4% C 0.193 H 275.5°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#2E23A3
RGBrgb(46, 35, 163)
HSLhsl(245, 65%, 39%)
HSVhsv(245, 79%, 64%)
CMYKcmyk(71.8%, 78.5%, 0%, 36.1%)
CIE-LABlab(25.03, 45.28, -66.33)
CIE-LCHlch(25.03, 80.31, 304.32°)
OKLaboklab(37.36% 0.0184 -0.1918)
OKLCHoklch(37.36% 0.193 275.5)
XYZxyz(8.3364, 4.4265, 35.0583)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E23A3 #98A323
analogous
#2358A3 #2E23A3 #6E23A3
triadic
#2E23A3 #A32E23 #23A32E
tetradic
#2E23A3 #A32358 #98A323 #23A36E
square
#2E23A3 #A32358 #98A323 #23A36E
split-complementary
#2E23A3 #A36E23 #58A323
monochromatic
#120D3E #201871 #2E23A3 #3E31D3 #6D63DD

Accessibility & contrast

On white

11.14
#2E23A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E23A3
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E23A3#FFFFFF#000000##FFFFFF
##2E23A31.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A7
Deuteranopia (green-blind)
#0036A1
Tritanopia (blue-blind)
#004A62
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2e23a3;
/* rgb */ color: rgb(46, 35, 163);
/* oklch */ color: oklch(37.4% 0.193 275.5);
Tailwind
colors: {
  custom: {
    50: '#7961c0',
    500: '#2e23a3',
    950: '#000000',
  },
}
SCSS
$custom: #2e23a3;
$custom-light: #7961c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e23a3",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 163
  },
  "hsl": {
    "h": 245.156,
    "s": 64.646,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37356,
    "c": 0.19267,
    "h": 275.5
  },
  "luminance": 0.04427
}

Semantic roles & 50–950 ramp

primary
#2E23A3
secondary
#BAC35F
accent
#E840D9
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2E23A3

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

Preview Lab → · Contrast checker → · Palette generator →

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