#1D1252#1D1252

#1D1252 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.110 H 282.7°. Best body text is #FFFFFF at 16.66:1 contrast (WCAG AA passes).

Color values

HEX#1D1252
RGBrgb(29, 18, 82)
HSLhsl(250, 64%, 20%)
HSVhsv(250, 78%, 32%)
CMYKcmyk(64.6%, 78%, 0%, 67.8%)
CIE-LABlab(11.30, 25.82, -37.10)
CIE-LCHlch(11.30, 45.20, 304.83°)
OKLaboklab(24.65% 0.024 -0.1069)
OKLCHoklch(24.65% 0.11 282.7)
XYZxyz(2.2455, 1.3029, 8.1142)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1252 #475212
analogous
#122752 #1D1252 #3D1252
triadic
#1D1252 #521D12 #12521D
tetradic
#1D1252 #521227 #475212 #12523D
square
#1D1252 #521227 #475212 #12523D
split-complementary
#1D1252 #523D12 #275212
monochromatic
#090619 #0B0720 #1D1252 #2F1D84 #4028B6

Accessibility & contrast

On white

16.66
#1D1252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#1D1252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1252
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1252#FFFFFF#000000##FFFFFF
##1D12521.0016.661.2616.66
#FFFFFF16.661.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002054
Deuteranopia (green-blind)
#001C51
Tritanopia (blue-blind)
#002330
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #1d1252;
/* rgb */ color: rgb(29, 18, 82);
/* oklch */ color: oklch(24.7% 0.110 282.7);
Tailwind
colors: {
  custom: {
    50: '#615183',
    500: '#1d1252',
    950: '#000000',
  },
}
SCSS
$custom: #1d1252;
$custom-light: #615183;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1252",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 250.313,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.24655,
    "c": 0.10957,
    "h": 282.7
  },
  "luminance": 0.01303
}

Semantic roles & 50–950 ramp

primary
#1D1252
secondary
#7C8B35
accent
#E741CA
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#05020B
muted
#7A787C

Preview Lab

Preview with #1D1252

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

Preview Lab → · Contrast checker → · Palette generator →

#1D1252 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva