#2E17B4#2E17B4

#2E17B4 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 38.1% C 0.221 H 274.6°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#2E17B4
RGBrgb(46, 23, 180)
HSLhsl(249, 77%, 40%)
HSVhsv(249, 87%, 71%)
CMYKcmyk(74.4%, 87.2%, 0%, 29.4%)
CIE-LABlab(25.22, 55.72, -76.26)
CIE-LCHlch(25.22, 94.45, 306.15°)
OKLaboklab(38.07% 0.0177 -0.2204)
OKLCHoklch(38.07% 0.221 274.6)
XYZxyz(9.6686, 4.4879, 43.5279)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E17B4 #9DB417
analogous
#174EB4 #2E17B4 #7D17B4
triadic
#2E17B4 #B42E17 #17B42E
tetradic
#2E17B4 #B4174E #9DB417 #17B47D
square
#2E17B4 #B4174E #9DB417 #17B47D
split-complementary
#2E17B4 #B47D17 #4EB417
monochromatic
#120947 #20107E #2E17B4 #4125E3 #705BEA

Accessibility & contrast

On white

11.07
#2E17B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2E17B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E17B4
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E17B4#FFFFFF#000000##FFFFFF
##2E17B41.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B8
Deuteranopia (green-blind)
#0035B1
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2e17b4;
/* rgb */ color: rgb(46, 23, 180);
/* oklch */ color: oklch(38.1% 0.221 274.6);
Tailwind
colors: {
  custom: {
    50: '#7e5ccc',
    500: '#2e17b4',
    950: '#000000',
  },
}
SCSS
$custom: #2e17b4;
$custom-light: #7e5ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e17b4",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 248.79,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38066,
    "c": 0.22109,
    "h": 274.6
  },
  "luminance": 0.04489
}

Semantic roles & 50–950 ramp

primary
#2E17B4
secondary
#BDCE59
accent
#F434D8
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2E17B4

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

Preview Lab → · Contrast checker → · Palette generator →

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