#2D0E57#2D0E57

#2D0E57 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.5% C 0.120 H 296.3°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#2D0E57
RGBrgb(45, 14, 87)
HSLhsl(265, 72%, 20%)
HSVhsv(265, 84%, 34%)
CMYKcmyk(48.3%, 83.9%, 0%, 65.9%)
CIE-LABlab(12.98, 32.36, -37.66)
CIE-LCHlch(12.98, 49.65, 310.67°)
OKLaboklab(26.46% 0.0534 -0.1079)
OKLCHoklch(26.46% 0.12 296.3)
XYZxyz(2.9591, 1.5600, 9.1602)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0E57 #38570E
analogous
#0E1457 #2D0E57 #510E57
triadic
#2D0E57 #572D0E #0E572D
tetradic
#2D0E57 #570E14 #38570E #0E5751
square
#2D0E57 #570E14 #38570E #0E5751
split-complementary
#2D0E57 #57510E #14570E
monochromatic
#0E041A #120622 #2D0E57 #48168C #641FC0

Accessibility & contrast

On white

16.01
#2D0E57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2D0E57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0E57
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0E57#FFFFFF#000000##FFFFFF
##2D0E571.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002259
Deuteranopia (green-blind)
#002056
Tritanopia (blue-blind)
#212232
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d0e57;
/* rgb */ color: rgb(45, 14, 87);
/* oklch */ color: oklch(26.5% 0.120 296.3);
Tailwind
colors: {
  custom: {
    50: '#6b5187',
    500: '#2d0e57',
    950: '#000000',
  },
}
SCSS
$custom: #2d0e57;
$custom-light: #6b5187;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0e57",
  "rgb": {
    "r": 45,
    "g": 14,
    "b": 87
  },
  "hsl": {
    "h": 265.479,
    "s": 72.277,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26458,
    "c": 0.12038,
    "h": 296.3
  },
  "luminance": 0.0156
}

Semantic roles & 50–950 ramp

primary
#2D0E57
secondary
#689130
accent
#EF39A2
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2D0E57

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

Preview Lab → · Contrast checker → · Palette generator →

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