#2E187F#2E187F

#2E187F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.159 H 282.5°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#2E187F
RGBrgb(46, 24, 127)
HSLhsl(253, 68%, 30%)
HSVhsv(253, 81%, 50%)
CMYKcmyk(63.8%, 81.1%, 0%, 50.2%)
CIE-LABlab(19.08, 39.60, -53.83)
CIE-LCHlch(19.08, 66.83, 306.34°)
OKLaboklab(32.02% 0.0343 -0.1552)
OKLCHoklch(32.02% 0.159 282.5)
XYZxyz(5.2829, 2.7660, 20.3301)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E187F #697F18
analogous
#18357F #2E187F #62187F
triadic
#2E187F #7F2E18 #187F2E
tetradic
#2E187F #7F1835 #697F18 #187F62
square
#2E187F #7F1835 #697F18 #187F62
split-complementary
#2E187F #7F6218 #357F18
monochromatic
#09051A #1B0E4C #2E187F #4122B2 #5A38D9

Accessibility & contrast

On white

13.52
#2E187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E187F
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E187F#FFFFFF#000000##FFFFFF
##2E187F1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e187f;
/* rgb */ color: rgb(46, 24, 127);
/* oklch */ color: oklch(32.0% 0.159 282.5);
Tailwind
colors: {
  custom: {
    50: '#7259a5',
    500: '#2e187f',
    950: '#000000',
  },
}
SCSS
$custom: #2e187f;
$custom-light: #7259a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e187f",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 252.816,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32019,
    "c": 0.159,
    "h": 282.5
  },
  "luminance": 0.02766
}

Semantic roles & 50–950 ramp

primary
#2E187F
secondary
#9BB33F
accent
#EB3DC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E187F

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

Preview Lab → · Contrast checker → · Palette generator →

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