#2E23A2#2E23A2

#2E23A2 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.2% C 0.191 H 275.6°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#2E23A2
RGBrgb(46, 35, 162)
HSLhsl(245, 64%, 39%)
HSVhsv(245, 78%, 64%)
CMYKcmyk(71.6%, 78.4%, 0%, 36.5%)
CIE-LABlab(24.92, 44.96, -65.91)
CIE-LCHlch(24.92, 79.78, 304.30°)
OKLaboklab(37.25% 0.0186 -0.1905)
OKLCHoklch(37.25% 0.191 275.6)
XYZxyz(8.2472, 4.3908, 34.5883)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E23A2 #97A223
analogous
#2357A2 #2E23A2 #6D23A2
triadic
#2E23A2 #A22E23 #23A22E
tetradic
#2E23A2 #A22357 #97A223 #23A26D
square
#2E23A2 #A22357 #97A223 #23A26D
split-complementary
#2E23A2 #A26D23 #57A223
monochromatic
#110D3D #201870 #2E23A2 #3E30D2 #6D62DD

Accessibility & contrast

On white

11.18
#2E23A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2E23A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E23A2
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E23A2#FFFFFF#000000##FFFFFF
##2E23A21.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A6
Deuteranopia (green-blind)
#0035A0
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2e23a2;
/* rgb */ color: rgb(46, 35, 162);
/* oklch */ color: oklch(37.2% 0.191 275.6);
Tailwind
colors: {
  custom: {
    50: '#7961bf',
    500: '#2e23a2',
    950: '#000000',
  },
}
SCSS
$custom: #2e23a2;
$custom-light: #7961bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e23a2",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 162
  },
  "hsl": {
    "h": 245.197,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37246,
    "c": 0.19146,
    "h": 275.6
  },
  "luminance": 0.04392
}

Semantic roles & 50–950 ramp

primary
#2E23A2
secondary
#BAC25E
accent
#E740D9
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2E23A2

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

Preview Lab → · Contrast checker → · Palette generator →

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