#1D125F#1D125F

#1D125F is a dark, vivid blue. Relative luminance 0.015; OKLCH L 26.1% C 0.127 H 279.3°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#1D125F
RGBrgb(29, 18, 95)
HSLhsl(249, 68%, 22%)
HSVhsv(249, 81%, 37%)
CMYKcmyk(69.5%, 81.1%, 0%, 62.7%)
CIE-LABlab(12.73, 30.35, -43.52)
CIE-LCHlch(12.73, 53.06, 304.89°)
OKLaboklab(26.11% 0.0207 -0.1257)
OKLCHoklch(26.11% 0.127 279.3)
XYZxyz(2.7879, 1.5198, 10.9707)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D125F #545F12
analogous
#122E5F #1D125F #43125F
triadic
#1D125F #5F1D12 #125F1D
tetradic
#1D125F #5F122E #545F12 #125F43
square
#1D125F #5F122E #545F12 #125F43
split-complementary
#1D125F #5F4312 #2E5F12
monochromatic
#08051A #0D082C #1D125F #2D1C92 #3C25C6

Accessibility & contrast

On white

16.10
#1D125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D125F
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D125F#FFFFFF#000000##FFFFFF
##1D125F1.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002461
Deuteranopia (green-blind)
#001E5E
Tritanopia (blue-blind)
#002838
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1d125f;
/* rgb */ color: rgb(29, 18, 95);
/* oklch */ color: oklch(26.1% 0.127 279.3);
Tailwind
colors: {
  custom: {
    50: '#64528d',
    500: '#1d125f',
    950: '#000000',
  },
}
SCSS
$custom: #1d125f;
$custom-light: #64528d;
$custom-dark: #000000;
JSON
{
  "hex": "#1d125f",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 248.571,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26105,
    "c": 0.12735,
    "h": 279.3
  },
  "luminance": 0.0152
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D125F

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

Preview Lab → · Contrast checker → · Palette generator →

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