#1D124F#1D124F

#1D124F is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.3% C 0.105 H 283.6°. Best body text is #FFFFFF at 16.78:1 contrast (WCAG AA passes).

Color values

HEX#1D124F
RGBrgb(29, 18, 79)
HSLhsl(251, 63%, 19%)
HSVhsv(251, 77%, 31%)
CMYKcmyk(63.3%, 77.2%, 0%, 69%)
CIE-LABlab(10.98, 24.76, -35.56)
CIE-LCHlch(10.98, 43.33, 304.85°)
OKLaboklab(24.33% 0.0247 -0.1024)
OKLCHoklch(24.33% 0.105 283.6)
XYZxyz(2.1339, 1.2582, 7.5260)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D124F #444F12
analogous
#12264F #1D124F #3C124F
triadic
#1D124F #4F1D12 #124F1D
tetradic
#1D124F #4F1226 #444F12 #124F3C
square
#1D124F #4F1226 #444F12 #124F3C
split-complementary
#1D124F #4F3C12 #264F12
monochromatic
#090619 #0B071D #1D124F #2F1D81 #4229B3

Accessibility & contrast

On white

16.78
#1D124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#1D124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D124F
16.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D124F#FFFFFF#000000##FFFFFF
##1D124F1.0016.781.2516.78
#FFFFFF16.781.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F51
Deuteranopia (green-blind)
#001B4E
Tritanopia (blue-blind)
#03222F
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #1d124f;
/* rgb */ color: rgb(29, 18, 79);
/* oklch */ color: oklch(24.3% 0.105 283.6);
Tailwind
colors: {
  custom: {
    50: '#605181',
    500: '#1d124f',
    950: '#000000',
  },
}
SCSS
$custom: #1d124f;
$custom-light: #605181;
$custom-dark: #000000;
JSON
{
  "hex": "#1d124f",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 250.82,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.24334,
    "c": 0.10533,
    "h": 283.6
  },
  "luminance": 0.01258
}

Semantic roles & 50–950 ramp

primary
#1D124F
secondary
#798835
accent
#E642C8
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1D124F

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

Preview Lab → · Contrast checker → · Palette generator →

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