#1D138A#1D138A

#1D138A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.180 H 272.5°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#1D138A
RGBrgb(29, 19, 138)
HSLhsl(245, 76%, 31%)
HSVhsv(245, 86%, 54%)
CMYKcmyk(79%, 86.2%, 0%, 45.9%)
CIE-LABlab(18.19, 43.94, -62.28)
CIE-LCHlch(18.19, 76.22, 305.20°)
OKLaboklab(31.44% 0.008 -0.1801)
OKLCHoklch(31.44% 0.18 272.5)
XYZxyz(5.3255, 2.5614, 24.2536)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D138A #808A13
analogous
#13448A #1D138A #58138A
triadic
#1D138A #8A1D13 #138A1D
tetradic
#1D138A #8A1344 #808A13 #138A58
square
#1D138A #8A1344 #808A13 #138A58
split-complementary
#1D138A #8A5813 #448A13
monochromatic
#06041E #120C54 #1D138A #281AC0 #4334E3

Accessibility & contrast

On white

13.89
#1D138A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D138A
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D138A#FFFFFF#000000##FFFFFF
##1D138A1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d138a;
/* rgb */ color: rgb(29, 19, 138);
/* oklch */ color: oklch(31.4% 0.180 272.5);
Tailwind
colors: {
  custom: {
    50: '#6f56ae',
    500: '#1d138a',
    950: '#000000',
  },
}
SCSS
$custom: #1d138a;
$custom-light: #6f56ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d138a",
  "rgb": {
    "r": 29,
    "g": 19,
    "b": 138
  },
  "hsl": {
    "h": 245.042,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31435,
    "c": 0.18032,
    "h": 272.5
  },
  "luminance": 0.02562
}

Semantic roles & 50–950 ramp

primary
#1D138A
secondary
#B3BE3A
accent
#F235E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1D138A

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

Preview Lab → · Contrast checker → · Palette generator →

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