#1D125C#1D125C

#1D125C is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.8% C 0.123 H 280.0°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#1D125C
RGBrgb(29, 18, 92)
HSLhsl(249, 67%, 22%)
HSVhsv(249, 80%, 36%)
CMYKcmyk(68.5%, 80.4%, 0%, 63.9%)
CIE-LABlab(12.39, 29.31, -42.08)
CIE-LCHlch(12.39, 51.28, 304.86°)
OKLaboklab(25.76% 0.0215 -0.1214)
OKLCHoklch(25.76% 0.123 280)
XYZxyz(2.6542, 1.4663, 10.2663)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D125C #515C12
analogous
#122C5C #1D125C #42125C
triadic
#1D125C #5C1D12 #125C1D
tetradic
#1D125C #5C122C #515C12 #125C42
square
#1D125C #5C122C #515C12 #125C42
split-complementary
#1D125C #5C4212 #2C5C12
monochromatic
#08051A #0D0829 #1D125C #2D1C8F #3D26C2

Accessibility & contrast

On white

16.24
#1D125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#1D125C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D125C
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D125C#FFFFFF#000000##FFFFFF
##1D125C1.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235E
Deuteranopia (green-blind)
#001D5B
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #1d125c;
/* rgb */ color: rgb(29, 18, 92);
/* oklch */ color: oklch(25.8% 0.123 280.0);
Tailwind
colors: {
  custom: {
    50: '#63518b',
    500: '#1d125c',
    950: '#000000',
  },
}
SCSS
$custom: #1d125c;
$custom-light: #63518b;
$custom-dark: #000000;
JSON
{
  "hex": "#1d125c",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 248.919,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.25763,
    "c": 0.12333,
    "h": 280
  },
  "luminance": 0.01467
}

Semantic roles & 50–950 ramp

primary
#1D125C
secondary
#869435
accent
#EA3ED1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1D125C

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

Preview Lab → · Contrast checker → · Palette generator →

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