#1D127E#1D127E

#1D127E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.167 H 274.0°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#1D127E
RGBrgb(29, 18, 126)
HSLhsl(246, 75%, 28%)
HSVhsv(246, 86%, 49%)
CMYKcmyk(77%, 85.7%, 0%, 50.6%)
CIE-LABlab(16.50, 40.62, -57.50)
CIE-LCHlch(16.50, 70.40, 305.24°)
OKLaboklab(29.83% 0.0117 -0.1663)
OKLCHoklch(29.83% 0.167 274)
XYZxyz(4.4876, 2.1997, 19.9227)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D127E #737E12
analogous
#123D7E #1D127E #53127E
triadic
#1D127E #7E1D12 #127E1D
tetradic
#1D127E #7E123D #737E12 #127E53
square
#1D127E #7E123D #737E12 #127E53
split-complementary
#1D127E #7E5312 #3D7E12
monochromatic
#06041B #110A48 #1D127E #291AB4 #3C2AE1

Accessibility & contrast

On white

14.58
#1D127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1D127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D127E
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D127E#FFFFFF#000000##FFFFFF
##1D127E1.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d127e;
/* rgb */ color: rgb(29, 18, 126);
/* oklch */ color: oklch(29.8% 0.167 274.0);
Tailwind
colors: {
  custom: {
    50: '#6c54a5',
    500: '#1d127e',
    950: '#000000',
  },
}
SCSS
$custom: #1d127e;
$custom-light: #6c54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d127e",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 246.111,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.2983,
    "c": 0.1667,
    "h": 274
  },
  "luminance": 0.022
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D127E

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

Preview Lab → · Contrast checker → · Palette generator →

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