#1D123E#1D123E

#1D123E is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.080 H 290.0°. Best body text is #FFFFFF at 17.38:1 contrast (WCAG AA passes).

Color values

HEX#1D123E
RGBrgb(29, 18, 62)
HSLhsl(255, 55%, 16%)
HSVhsv(255, 71%, 24%)
CMYKcmyk(53.2%, 71%, 0%, 75.7%)
CIE-LABlab(9.33, 18.74, -26.35)
CIE-LCHlch(9.33, 32.33, 305.43°)
OKLaboklab(22.64% 0.0274 -0.0753)
OKLCHoklch(22.64% 0.08 290)
XYZxyz(1.5923, 1.0416, 4.6736)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D123E #333E12
analogous
#121D3E #1D123E #33123E
triadic
#1D123E #3E1D12 #123E1D
tetradic
#1D123E #3E121D #333E12 #123E33
square
#1D123E #3E121D #333E12 #123E33
split-complementary
#1D123E #3E3312 #1D3E12
monochromatic
#0B0718 #0B0718 #1D123E #33206D #492E9D

Accessibility & contrast

On white

17.38
#1D123E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#1D123E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D123E
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D123E#FFFFFF#000000##FFFFFF
##1D123E1.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3F
Deuteranopia (green-blind)
#00193D
Tritanopia (blue-blind)
#131C25
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1d123e;
/* rgb */ color: rgb(29, 18, 62);
/* oklch */ color: oklch(22.6% 0.080 290.0);
Tailwind
colors: {
  custom: {
    50: '#5c5074',
    500: '#1d123e',
    950: '#000000',
  },
}
SCSS
$custom: #1d123e;
$custom-light: #5c5074;
$custom-dark: #000000;
JSON
{
  "hex": "#1d123e",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 62
  },
  "hsl": {
    "h": 255,
    "s": 55,
    "l": 15.686
  },
  "oklch": {
    "l": 0.22635,
    "c": 0.08017,
    "h": 290
  },
  "luminance": 0.01042
}

Semantic roles & 50–950 ramp

primary
#1D123E
secondary
#667735
accent
#DE49B9
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #1D123E

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

Preview Lab → · Contrast checker → · Palette generator →

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