#2E0F4D#2E0F4D

#2E0F4D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.107 H 302.0°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#2E0F4D
RGBrgb(46, 15, 77)
HSLhsl(270, 67%, 18%)
HSVhsv(270, 81%, 30%)
CMYKcmyk(40.3%, 80.5%, 0%, 69.8%)
CIE-LABlab(12.34, 29.20, -31.87)
CIE-LCHlch(12.34, 43.23, 312.50°)
OKLaboklab(25.74% 0.0569 -0.0909)
OKLCHoklch(25.74% 0.107 302)
XYZxyz(2.6368, 1.4583, 7.1623)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0F4D #2E4D0F
analogous
#0F0F4D #2E0F4D #4D0F4D
triadic
#2E0F4D #4D2E0F #0F4D2E
tetradic
#2E0F4D #4D0F0F #2E4D0F #0F4D4D
square
#2E0F4D #4D0F0F #2E4D0F #0F4D4D
split-complementary
#2E0F4D #4D4D0F #0F4D0F
monochromatic
#0F051A #0F051A #2E0F4D #4D1980 #6B23B3

Accessibility & contrast

On white

16.26
#2E0F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2E0F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0F4D
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0F4D#FFFFFF#000000##FFFFFF
##2E0F4D1.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#271E2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e0f4d;
/* rgb */ color: rgb(46, 15, 77);
/* oklch */ color: oklch(25.7% 0.107 302.0);
Tailwind
colors: {
  custom: {
    50: '#6a517f',
    500: '#2e0f4d',
    950: '#000000',
  },
}
SCSS
$custom: #2e0f4d;
$custom-light: #6a517f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0f4d",
  "rgb": {
    "r": 46,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 270,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25739,
    "c": 0.10721,
    "h": 302
  },
  "luminance": 0.01458
}

Semantic roles & 50–950 ramp

primary
#2E0F4D
secondary
#5C8731
accent
#EA3E94
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E0F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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