#1D125E#1D125E

#1D125E is a dark, vivid blue. Relative luminance 0.015; OKLCH L 26.0% C 0.126 H 279.6°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#1D125E
RGBrgb(29, 18, 94)
HSLhsl(249, 68%, 22%)
HSVhsv(249, 81%, 37%)
CMYKcmyk(69.1%, 80.9%, 0%, 63.1%)
CIE-LABlab(12.62, 30.00, -43.04)
CIE-LCHlch(12.62, 52.47, 304.88°)
OKLaboklab(25.99% 0.021 -0.1243)
OKLCHoklch(25.99% 0.126 279.6)
XYZxyz(2.7427, 1.5018, 10.7328)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D125E #535E12
analogous
#122D5E #1D125E #43125E
triadic
#1D125E #5E1D12 #125E1D
tetradic
#1D125E #5E122D #535E12 #125E43
square
#1D125E #5E122D #535E12 #125E43
split-complementary
#1D125E #5E4312 #2D5E12
monochromatic
#08051A #0D082B #1D125E #2D1C91 #3D26C5

Accessibility & contrast

On white

16.15
#1D125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#1D125E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D125E
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D125E#FFFFFF#000000##FFFFFF
##1D125E1.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002460
Deuteranopia (green-blind)
#001E5D
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1d125e;
/* rgb */ color: rgb(29, 18, 94);
/* oklch */ color: oklch(26.0% 0.126 279.6);
Tailwind
colors: {
  custom: {
    50: '#64528d',
    500: '#1d125e',
    950: '#000000',
  },
}
SCSS
$custom: #1d125e;
$custom-light: #64528d;
$custom-dark: #000000;
JSON
{
  "hex": "#1d125e",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 248.684,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.25991,
    "c": 0.12602,
    "h": 279.6
  },
  "luminance": 0.01502
}

Semantic roles & 50–950 ramp

primary
#1D125E
secondary
#889635
accent
#EB3DD2
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1D125E

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

Preview Lab → · Contrast checker → · Palette generator →

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