#1D127F#1D127F

#1D127F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.0% C 0.168 H 273.9°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#1D127F
RGBrgb(29, 18, 127)
HSLhsl(246, 75%, 28%)
HSVhsv(246, 86%, 50%)
CMYKcmyk(77.2%, 85.8%, 0%, 50.2%)
CIE-LABlab(16.63, 40.94, -57.93)
CIE-LCHlch(16.63, 70.93, 305.25°)
OKLaboklab(29.95% 0.0114 -0.1675)
OKLCHoklch(29.95% 0.168 273.9)
XYZxyz(4.5525, 2.2257, 20.2642)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D127F #747F12
analogous
#123D7F #1D127F #53127F
triadic
#1D127F #7F1D12 #127F1D
tetradic
#1D127F #7F123D #747F12 #127F53
square
#1D127F #7F123D #747F12 #127F53
split-complementary
#1D127F #7F5312 #3D7F12
monochromatic
#06041B #110A49 #1D127F #291AB5 #3D2BE1

Accessibility & contrast

On white

14.53
#1D127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1D127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D127F
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D127F#FFFFFF#000000##FFFFFF
##1D127F1.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00247D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1d127f;
/* rgb */ color: rgb(29, 18, 127);
/* oklch */ color: oklch(30.0% 0.168 273.9);
Tailwind
colors: {
  custom: {
    50: '#6c54a5',
    500: '#1d127f',
    950: '#000000',
  },
}
SCSS
$custom: #1d127f;
$custom-light: #6c54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d127f",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 246.055,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29954,
    "c": 0.16791,
    "h": 273.9
  },
  "luminance": 0.02226
}

Semantic roles & 50–950 ramp

primary
#1D127F
secondary
#A8B538
accent
#F236DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1D127F

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

Preview Lab → · Contrast checker → · Palette generator →

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