#1D2181#1D2181

#1D2181 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.156 H 271.7°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#1D2181
RGBrgb(29, 33, 129)
HSLhsl(238, 63%, 31%)
HSVhsv(238, 78%, 51%)
CMYKcmyk(77.5%, 74.4%, 0%, 49.4%)
CIE-LABlab(19.78, 33.29, -53.99)
CIE-LCHlch(19.78, 63.43, 301.66°)
OKLaboklab(32.23% 0.0048 -0.1563)
OKLCHoklch(32.23% 0.156 271.7)
XYZxyz(5.0117, 2.9334, 21.0667)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2181 #817D1D
analogous
#1D5381 #1D2181 #4B1D81
triadic
#1D2181 #811D21 #21811D
tetradic
#1D2181 #811D53 #817D1D #1D814B
square
#1D2181 #811D53 #817D1D #1D814B
split-complementary
#1D2181 #814B1D #53811D
monochromatic
#07071D #12144F #1D2181 #282EB3 #4449D5

Accessibility & contrast

On white

13.23
#1D2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D2181
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2181#FFFFFF#000000##FFFFFF
##1D21811.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1d2181;
/* rgb */ color: rgb(29, 33, 129);
/* oklch */ color: oklch(32.2% 0.156 271.7);
Tailwind
colors: {
  custom: {
    50: '#6b5da7',
    500: '#1d2181',
    950: '#000000',
  },
}
SCSS
$custom: #1d2181;
$custom-light: #6b5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2181",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 237.6,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32234,
    "c": 0.15635,
    "h": 271.7
  },
  "luminance": 0.02934
}

Semantic roles & 50–950 ramp

primary
#1D2181
secondary
#B4B046
accent
#E041E6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080410
muted
#7A797F

Preview Lab

Preview with #1D2181

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

Preview Lab → · Contrast checker → · Palette generator →

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