#2E2398#2E2398

#2E2398 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.179 H 276.7°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#2E2398
RGBrgb(46, 35, 152)
HSLhsl(246, 63%, 37%)
HSVhsv(246, 77%, 60%)
CMYKcmyk(69.7%, 77%, 0%, 40.4%)
CIE-LABlab(23.83, 41.74, -61.60)
CIE-LCHlch(23.83, 74.41, 304.12°)
OKLaboklab(36.16% 0.021 -0.178)
OKLCHoklch(36.16% 0.179 276.7)
XYZxyz(7.3934, 4.0492, 30.0916)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2398 #8D9823
analogous
#235398 #2E2398 #692398
triadic
#2E2398 #982E23 #23982E
tetradic
#2E2398 #982353 #8D9823 #239869
square
#2E2398 #982353 #8D9823 #239869
split-complementary
#2E2398 #986923 #539823
monochromatic
#100C35 #1F1866 #2E2398 #3D2ECA #685CD9

Accessibility & contrast

On white

11.60
#2E2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2E2398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2398
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2398#FFFFFF#000000##FFFFFF
##2E23981.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e2398;
/* rgb */ color: rgb(46, 35, 152);
/* oklch */ color: oklch(36.2% 0.179 276.7);
Tailwind
colors: {
  custom: {
    50: '#7760b8',
    500: '#2e2398',
    950: '#000000',
  },
}
SCSS
$custom: #2e2398;
$custom-light: #7760b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2398",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 245.641,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36158,
    "c": 0.17925,
    "h": 276.7
  },
  "luminance": 0.0405
}

Semantic roles & 50–950 ramp

primary
#2E2398
secondary
#B5BE59
accent
#E642D6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2E2398

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

Preview Lab → · Contrast checker → · Palette generator →

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