#2E0F4C#2E0F4C

#2E0F4C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.106 H 302.6°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#2E0F4C
RGBrgb(46, 15, 76)
HSLhsl(270, 67%, 18%)
HSVhsv(270, 80%, 30%)
CMYKcmyk(39.5%, 80.3%, 0%, 70.2%)
CIE-LABlab(12.25, 28.92, -31.33)
CIE-LCHlch(12.25, 42.64, 312.71°)
OKLaboklab(25.65% 0.0571 -0.0893)
OKLCHoklch(25.65% 0.106 302.6)
XYZxyz(2.6017, 1.4443, 6.9778)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0F4C #2D4C0F
analogous
#100F4C #2E0F4C #4C0F4B
triadic
#2E0F4C #4C2E0F #0F4C2E
tetradic
#2E0F4C #4C100F #2D4C0F #0F4B4C
square
#2E0F4C #4C100F #2D4C0F #0F4B4C
split-complementary
#2E0F4C #4B4C0F #0F4C10
monochromatic
#0F051A #0F051A #2E0F4C #4D197F #6C23B2

Accessibility & contrast

On white

16.29
#2E0F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E0F4C
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0F4C#FFFFFF#000000##FFFFFF
##2E0F4C1.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#281E2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e0f4c;
/* rgb */ color: rgb(46, 15, 76);
/* oklch */ color: oklch(25.6% 0.106 302.6);
Tailwind
colors: {
  custom: {
    50: '#6a517f',
    500: '#2e0f4c',
    950: '#000000',
  },
}
SCSS
$custom: #2e0f4c;
$custom-light: #6a517f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0f4c",
  "rgb": {
    "r": 46,
    "g": 15,
    "b": 76
  },
  "hsl": {
    "h": 270.492,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25646,
    "c": 0.10599,
    "h": 302.6
  },
  "luminance": 0.01444
}

Semantic roles & 50–950 ramp

primary
#2E0F4C
secondary
#5B8631
accent
#EA3E92
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E0F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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