#1D124C#1D124C

#1D124C is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.101 H 284.5°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#1D124C
RGBrgb(29, 18, 76)
HSLhsl(251, 62%, 18%)
HSVhsv(251, 76%, 30%)
CMYKcmyk(61.8%, 76.3%, 0%, 70.2%)
CIE-LABlab(10.67, 23.70, -34.00)
CIE-LCHlch(10.67, 41.44, 304.88°)
OKLaboklab(24.02% 0.0253 -0.0978)
OKLCHoklch(24.02% 0.101 284.5)
XYZxyz(2.0271, 1.2155, 6.9639)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D124C #414C12
analogous
#12244C #1D124C #3A124C
triadic
#1D124C #4C1D12 #124C1D
tetradic
#1D124C #4C1224 #414C12 #124C3A
square
#1D124C #4C1224 #414C12 #124C3A
split-complementary
#1D124C #4C3A12 #244C12
monochromatic
#090619 #0A061B #1D124C #301E7D #4329AF

Accessibility & contrast

On white

16.89
#1D124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#1D124C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D124C
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D124C#FFFFFF#000000##FFFFFF
##1D124C1.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4E
Deuteranopia (green-blind)
#001B4B
Tritanopia (blue-blind)
#07212D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #1d124c;
/* rgb */ color: rgb(29, 18, 76);
/* oklch */ color: oklch(24.0% 0.101 284.5);
Tailwind
colors: {
  custom: {
    50: '#5f517f',
    500: '#1d124c',
    950: '#000000',
  },
}
SCSS
$custom: #1d124c;
$custom-light: #5f517f;
$custom-dark: #000000;
JSON
{
  "hex": "#1d124c",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 251.379,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.24018,
    "c": 0.10103,
    "h": 284.5
  },
  "luminance": 0.01216
}

Semantic roles & 50–950 ramp

primary
#1D124C
secondary
#768535
accent
#E543C6
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1D124C

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

Preview Lab → · Contrast checker → · Palette generator →

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