#2E125A#2E125A

#2E125A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.119 H 294.9°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#2E125A
RGBrgb(46, 18, 90)
HSLhsl(263, 67%, 21%)
HSVhsv(263, 80%, 35%)
CMYKcmyk(48.9%, 80%, 0%, 64.7%)
CIE-LABlab(14.13, 31.40, -37.81)
CIE-LCHlch(14.13, 49.15, 309.70°)
OKLaboklab(27.38% 0.0504 -0.1083)
OKLCHoklch(27.38% 0.119 294.9)
XYZxyz(3.1880, 1.7516, 9.8410)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E125A #3E5A12
analogous
#121A5A #2E125A #52125A
triadic
#2E125A #5A2E12 #125A2E
tetradic
#2E125A #5A121A #3E5A12 #125A52
square
#2E125A #5A121A #3E5A12 #125A52
split-complementary
#2E125A #5A5212 #1A5A12
monochromatic
#0D051A #140827 #2E125A #481C8D #6226C0

Accessibility & contrast

On white

15.55
#2E125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2E125A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E125A
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E125A#FFFFFF#000000##FFFFFF
##2E125A1.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#002359
Tritanopia (blue-blind)
#212535
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e125a;
/* rgb */ color: rgb(46, 18, 90);
/* oklch */ color: oklch(27.4% 0.119 294.9);
Tailwind
colors: {
  custom: {
    50: '#6c5389',
    500: '#2e125a',
    950: '#000000',
  },
}
SCSS
$custom: #2e125a;
$custom-light: #6c5389;
$custom-dark: #000000;
JSON
{
  "hex": "#2e125a",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 263.333,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.2738,
    "c": 0.11949,
    "h": 294.9
  },
  "luminance": 0.01752
}

Semantic roles & 50–950 ramp

primary
#2E125A
secondary
#6E9335
accent
#EA3EA7
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2E125A

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

Preview Lab → · Contrast checker → · Palette generator →

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