#2E239E#2E239E

#2E239E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.187 H 276.0°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#2E239E
RGBrgb(46, 35, 158)
HSLhsl(245, 64%, 38%)
HSVhsv(245, 78%, 62%)
CMYKcmyk(70.9%, 77.8%, 0%, 38%)
CIE-LABlab(24.48, 43.68, -64.20)
CIE-LCHlch(24.48, 77.65, 304.23°)
OKLaboklab(36.81% 0.0196 -0.1856)
OKLCHoklch(36.81% 0.187 276)
XYZxyz(7.8973, 4.2508, 32.7454)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E239E #939E23
analogous
#23559E #2E239E #6B239E
triadic
#2E239E #9E2E23 #239E2E
tetradic
#2E239E #9E2355 #939E23 #239E6B
square
#2E239E #9E2355 #939E23 #239E6B
split-complementary
#2E239E #9E6B23 #559E23
monochromatic
#110D3A #1F186C #2E239E #3D2ED0 #6B60DC

Accessibility & contrast

On white

11.35
#2E239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2E239E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E239E
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E239E#FFFFFF#000000##FFFFFF
##2E239E1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA1
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e239e;
/* rgb */ color: rgb(46, 35, 158);
/* oklch */ color: oklch(36.8% 0.187 276.0);
Tailwind
colors: {
  custom: {
    50: '#7861bc',
    500: '#2e239e',
    950: '#000000',
  },
}
SCSS
$custom: #2e239e;
$custom-light: #7861bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e239e",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 245.366,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36808,
    "c": 0.18661,
    "h": 276
  },
  "luminance": 0.04252
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E239E

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

Preview Lab → · Contrast checker → · Palette generator →

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