#1D2870#1D2870

#1D2870 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.124 H 270.8°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#1D2870
RGBrgb(29, 40, 112)
HSLhsl(232, 59%, 28%)
HSVhsv(232, 74%, 44%)
CMYKcmyk(74.1%, 64.3%, 0%, 56.1%)
CIE-LABlab(19.84, 22.15, -43.03)
CIE-LCHlch(19.84, 48.40, 297.24°)
OKLaboklab(31.76% 0.0018 -0.1242)
OKLCHoklch(31.76% 0.124 270.8)
XYZxyz(4.1891, 2.9482, 15.6744)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2870 #70651D
analogous
#1D5270 #1D2870 #3B1D70
triadic
#1D2870 #701D28 #28701D
tetradic
#1D2870 #701D52 #70651D #1D703B
square
#1D2870 #701D52 #70651D #1D703B
split-complementary
#1D2870 #703B1D #52701D
monochromatic
#060918 #10173F #1D2870 #2A39A1 #3B4ECC

Accessibility & contrast

On white

13.21
#1D2870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1D2870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2870
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2870#FFFFFF#000000##FFFFFF
##1D28701.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003472
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1d2870;
/* rgb */ color: rgb(29, 40, 112);
/* oklch */ color: oklch(31.8% 0.124 270.8);
Tailwind
colors: {
  custom: {
    50: '#66619a',
    500: '#1d2870',
    950: '#000000',
  },
}
SCSS
$custom: #1d2870;
$custom-light: #66619a;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2870",
  "rgb": {
    "r": 29,
    "g": 40,
    "b": 112
  },
  "hsl": {
    "h": 232.048,
    "s": 58.865,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31764,
    "c": 0.12421,
    "h": 270.8
  },
  "luminance": 0.02949
}

Semantic roles & 50–950 ramp

primary
#1D2870
secondary
#A49844
accent
#CD46E2
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #1D2870

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

Preview Lab → · Contrast checker → · Palette generator →

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