#1D2170#1D2170

#1D2170 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.4% C 0.133 H 273.1°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#1D2170
RGBrgb(29, 33, 112)
HSLhsl(237, 59%, 28%)
HSVhsv(237, 74%, 44%)
CMYKcmyk(74.1%, 70.5%, 0%, 56.1%)
CIE-LABlab(18.00, 26.98, -46.04)
CIE-LCHlch(18.00, 53.36, 300.38°)
OKLaboklab(30.42% 0.0071 -0.133)
OKLCHoklch(30.42% 0.133 273.1)
XYZxyz(3.9742, 2.5184, 15.6027)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2170 #706C1D
analogous
#1D4B70 #1D2170 #421D70
triadic
#1D2170 #701D21 #21701D
tetradic
#1D2170 #701D4B #706C1D #1D7042
square
#1D2170 #701D4B #706C1D #1D7042
split-complementary
#1D2170 #70421D #4B701D
monochromatic
#060718 #10133F #1D2170 #2A2FA1 #3B42CC

Accessibility & contrast

On white

13.96
#1D2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#1D2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2170
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2170#FFFFFF#000000##FFFFFF
##1D21701.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1d2170;
/* rgb */ color: rgb(29, 33, 112);
/* oklch */ color: oklch(30.4% 0.133 273.1);
Tailwind
colors: {
  custom: {
    50: '#675c9a',
    500: '#1d2170',
    950: '#000000',
  },
}
SCSS
$custom: #1d2170;
$custom-light: #675c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2170",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 237.108,
    "s": 58.865,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30421,
    "c": 0.13324,
    "h": 273.1
  },
  "luminance": 0.02519
}

Semantic roles & 50–950 ramp

primary
#1D2170
secondary
#A4A044
accent
#DB46E2
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1D2170

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

Preview Lab → · Contrast checker → · Palette generator →

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