#2E206B#2E206B

#2E206B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.1% C 0.124 H 285.2°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#2E206B
RGBrgb(46, 32, 107)
HSLhsl(251, 54%, 27%)
HSVhsv(251, 70%, 42%)
CMYKcmyk(57%, 70.1%, 0%, 58%)
CIE-LABlab(18.69, 28.57, -41.60)
CIE-LCHlch(18.69, 50.47, 304.48°)
OKLaboklab(31.13% 0.0325 -0.1195)
OKLCHoklch(31.13% 0.124 285.2)
XYZxyz(4.2963, 2.6752, 14.1970)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E206B #5D6B20
analogous
#20386B #2E206B #54206B
triadic
#2E206B #6B2E20 #206B2E
tetradic
#2E206B #6B2038 #5D6B20 #206B54
square
#2E206B #6B2038 #5D6B20 #206B54
split-complementary
#2E206B #6B5420 #386B20
monochromatic
#0A0718 #1A123C #2E206B #422E9A #5940C6

Accessibility & contrast

On white

13.68
#2E206B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2E206B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E206B
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E206B#FFFFFF#000000##FFFFFF
##2E206B1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#002B6A
Tritanopia (blue-blind)
#143342
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e206b;
/* rgb */ color: rgb(46, 32, 107);
/* oklch */ color: oklch(31.1% 0.124 285.2);
Tailwind
colors: {
  custom: {
    50: '#6e5c96',
    500: '#2e206b',
    950: '#000000',
  },
}
SCSS
$custom: #2e206b;
$custom-light: #6e5c96;
$custom-dark: #000000;
JSON
{
  "hex": "#2e206b",
  "rgb": {
    "r": 46,
    "g": 32,
    "b": 107
  },
  "hsl": {
    "h": 251.2,
    "s": 53.957,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31132,
    "c": 0.12386,
    "h": 285.2
  },
  "luminance": 0.02675
}

Semantic roles & 50–950 ramp

primary
#2E206B
secondary
#8F9F48
accent
#DD4AC2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #2E206B

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

Preview Lab → · Contrast checker → · Palette generator →

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