#1D128E#1D128E

#1D128E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.8% C 0.186 H 272.2°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#1D128E
RGBrgb(29, 18, 142)
HSLhsl(245, 78%, 31%)
HSVhsv(245, 87%, 56%)
CMYKcmyk(79.6%, 87.3%, 0%, 44.3%)
CIE-LABlab(18.57, 45.61, -64.16)
CIE-LCHlch(18.57, 78.72, 305.41°)
OKLaboklab(31.84% 0.0071 -0.1856)
OKLCHoklch(31.84% 0.186 272.2)
XYZxyz(5.6039, 2.6462, 25.8014)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D128E #838E12
analogous
#12458E #1D128E #5B128E
triadic
#1D128E #8E1D12 #128E1D
tetradic
#1D128E #8E1245 #838E12 #128E5B
square
#1D128E #8E1245 #838E12 #128E5B
split-complementary
#1D128E #8E5B12 #458E12
monochromatic
#070421 #120B58 #1D128E #2819C4 #4535E5

Accessibility & contrast

On white

13.73
#1D128E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1D128E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D128E
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D128E#FFFFFF#000000##FFFFFF
##1D128E1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00278C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1d128e;
/* rgb */ color: rgb(29, 18, 142);
/* oklch */ color: oklch(31.8% 0.186 272.2);
Tailwind
colors: {
  custom: {
    50: '#7055b0',
    500: '#1d128e',
    950: '#000000',
  },
}
SCSS
$custom: #1d128e;
$custom-light: #7055b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d128e",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 142
  },
  "hsl": {
    "h": 245.323,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31839,
    "c": 0.18571,
    "h": 272.2
  },
  "luminance": 0.02647
}

Semantic roles & 50–950 ramp

primary
#1D128E
secondary
#B6C23A
accent
#F434E3
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1D128E

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

Preview Lab → · Contrast checker → · Palette generator →

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