#1D39A8#1D39A8

#1D39A8 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.4% C 0.180 H 266.6°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#1D39A8
RGBrgb(29, 57, 168)
HSLhsl(228, 71%, 39%)
HSVhsv(228, 83%, 66%)
CMYKcmyk(82.7%, 66.1%, 0%, 34.1%)
CIE-LABlab(29.45, 32.30, -62.11)
CIE-LCHlch(29.45, 70.01, 297.48°)
OKLaboklab(40.44% -0.0108 -0.1799)
OKLCHoklch(40.44% 0.18 266.6)
XYZxyz(9.0352, 6.0135, 37.7227)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D39A8 #A88C1D
analogous
#1D7EA8 #1D39A8 #471DA8
triadic
#1D39A8 #A81D39 #39A81D
tetradic
#1D39A8 #A81D7E #A88C1D #1DA847
square
#1D39A8 #A81D7E #A88C1D #1DA847
split-complementary
#1D39A8 #A8471D #7EA81D
monochromatic
#0B1640 #142774 #1D39A8 #284CDA #5C78E3

Accessibility & contrast

On white

9.53
#1D39A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#1D39A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D39A8
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D39A8#FFFFFF#000000##FFFFFF
##1D39A81.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#003FA6
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1d39a8;
/* rgb */ color: rgb(29, 57, 168);
/* oklch */ color: oklch(40.4% 0.180 266.6);
Tailwind
colors: {
  custom: {
    50: '#736fc3',
    500: '#1d39a8',
    950: '#000000',
  },
}
SCSS
$custom: #1d39a8;
$custom-light: #736fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#1d39a8",
  "rgb": {
    "r": 29,
    "g": 57,
    "b": 168
  },
  "hsl": {
    "h": 227.914,
    "s": 70.558,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40437,
    "c": 0.18022,
    "h": 266.6
  },
  "luminance": 0.06015
}

Semantic roles & 50–950 ramp

primary
#1D39A8
secondary
#C7B15A
accent
#C93AED
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #1D39A8

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

Preview Lab → · Contrast checker → · Palette generator →

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