#2E147B#2E147B

#2E147B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.158 H 284.0°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#2E147B
RGBrgb(46, 20, 123)
HSLhsl(255, 72%, 28%)
HSVhsv(255, 84%, 48%)
CMYKcmyk(62.6%, 83.7%, 0%, 51.8%)
CIE-LABlab(17.97, 40.32, -53.12)
CIE-LCHlch(17.97, 66.69, 307.20°)
OKLaboklab(31.11% 0.0381 -0.1531)
OKLCHoklch(31.11% 0.158 284)
XYZxyz(4.9509, 2.5109, 18.9588)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E147B #617B14
analogous
#142D7B #2E147B #61147B
triadic
#2E147B #7B2E14 #147B2E
tetradic
#2E147B #7B142D #617B14 #147B61
square
#2E147B #7B142D #617B14 #147B61
split-complementary
#2E147B #7B6114 #2D7B14
monochromatic
#0A041A #1A0B46 #2E147B #421DB0 #592DDD

Accessibility & contrast

On white

13.98
#2E147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2E147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E147B
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E147B#FFFFFF#000000##FFFFFF
##2E147B1.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e147b;
/* rgb */ color: rgb(46, 20, 123);
/* oklch */ color: oklch(31.1% 0.158 284.0);
Tailwind
colors: {
  custom: {
    50: '#7256a2',
    500: '#2e147b',
    950: '#000000',
  },
}
SCSS
$custom: #2e147b;
$custom-light: #7256a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e147b",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 255.146,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31114,
    "c": 0.1578,
    "h": 284
  },
  "luminance": 0.02511
}

Semantic roles & 50–950 ramp

primary
#2E147B
secondary
#93B13A
accent
#EF39C1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E147B

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

Preview Lab → · Contrast checker → · Palette generator →

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