#2E187E#2E187E

#2E187E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.158 H 282.7°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#2E187E
RGBrgb(46, 24, 126)
HSLhsl(253, 68%, 29%)
HSVhsv(253, 81%, 49%)
CMYKcmyk(63.5%, 81%, 0%, 50.6%)
CIE-LABlab(18.97, 39.29, -53.37)
CIE-LCHlch(18.97, 66.28, 306.36°)
OKLaboklab(31.91% 0.0346 -0.1539)
OKLCHoklch(31.91% 0.158 282.7)
XYZxyz(5.2181, 2.7401, 19.9885)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E187E #687E18
analogous
#18357E #2E187E #61187E
triadic
#2E187E #7E2E18 #187E2E
tetradic
#2E187E #7E1835 #687E18 #187E61
square
#2E187E #7E1835 #687E18 #187E61
split-complementary
#2E187E #7E6118 #357E18
monochromatic
#09051A #1B0E4B #2E187E #4122B1 #5A37D9

Accessibility & contrast

On white

13.57
#2E187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2E187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E187E
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E187E#FFFFFF#000000##FFFFFF
##2E187E1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e187e;
/* rgb */ color: rgb(46, 24, 126);
/* oklch */ color: oklch(31.9% 0.158 282.7);
Tailwind
colors: {
  custom: {
    50: '#7258a4',
    500: '#2e187e',
    950: '#000000',
  },
}
SCSS
$custom: #2e187e;
$custom-light: #7258a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e187e",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 252.941,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3191,
    "c": 0.15777,
    "h": 282.7
  },
  "luminance": 0.0274
}

Semantic roles & 50–950 ramp

primary
#2E187E
secondary
#9AB23F
accent
#EB3DC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E187E

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

Preview Lab → · Contrast checker → · Palette generator →

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