#1D128A#1D128A

#1D128A is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.3% C 0.181 H 272.6°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#1D128A
RGBrgb(29, 18, 138)
HSLhsl(246, 77%, 31%)
HSVhsv(246, 87%, 54%)
CMYKcmyk(79%, 87%, 0%, 45.9%)
CIE-LABlab(18.05, 44.38, -62.53)
CIE-LCHlch(18.05, 76.68, 305.37°)
OKLaboklab(31.33% 0.0082 -0.1808)
OKLCHoklch(31.33% 0.181 272.6)
XYZxyz(5.3089, 2.5282, 24.2480)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D128A #7F8A12
analogous
#12438A #1D128A #59128A
triadic
#1D128A #8A1D12 #128A1D
tetradic
#1D128A #8A1243 #7F8A12 #128A59
square
#1D128A #8A1243 #7F8A12 #128A59
split-complementary
#1D128A #8A5912 #438A12
monochromatic
#06041E #120B54 #1D128A #2819C0 #4232E4

Accessibility & contrast

On white

13.95
#1D128A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1D128A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D128A
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D128A#FFFFFF#000000##FFFFFF
##1D128A1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328D
Deuteranopia (green-blind)
#002688
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1d128a;
/* rgb */ color: rgb(29, 18, 138);
/* oklch */ color: oklch(31.3% 0.181 272.6);
Tailwind
colors: {
  custom: {
    50: '#6f55ae',
    500: '#1d128a',
    950: '#000000',
  },
}
SCSS
$custom: #1d128a;
$custom-light: #6f55ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d128a",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 138
  },
  "hsl": {
    "h": 245.5,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31333,
    "c": 0.18102,
    "h": 272.6
  },
  "luminance": 0.02529
}

Semantic roles & 50–950 ramp

primary
#1D128A
secondary
#B2BF39
accent
#F334E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1D128A

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

Preview Lab → · Contrast checker → · Palette generator →

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