#1D2197#1D2197

#1D2197 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.184 H 270.3°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#1D2197
RGBrgb(29, 33, 151)
HSLhsl(238, 68%, 35%)
HSVhsv(238, 81%, 59%)
CMYKcmyk(80.8%, 78.1%, 0%, 40.8%)
CIE-LABlab(22.24, 41.04, -63.65)
CIE-LCHlch(22.24, 75.74, 302.81°)
OKLaboklab(34.71% 0.001 -0.1843)
OKLCHoklch(34.71% 0.184 270.3)
XYZxyz(6.6346, 3.5825, 29.6140)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2197 #97931D
analogous
#1D5E97 #1D2197 #561D97
triadic
#1D2197 #971D21 #21971D
tetradic
#1D2197 #971D5E #97931D #1D9756
square
#1D2197 #971D5E #97931D #1D9756
split-complementary
#1D2197 #97561D #5E971D
monochromatic
#090B30 #131664 #1D2197 #272CCA #5155DE

Accessibility & contrast

On white

12.23
#1D2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1D2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2197
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2197#FFFFFF#000000##FFFFFF
##1D21971.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#002F95
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1d2197;
/* rgb */ color: rgb(29, 33, 151);
/* oklch */ color: oklch(34.7% 0.184 270.3);
Tailwind
colors: {
  custom: {
    50: '#715eb7',
    500: '#1d2197',
    950: '#000000',
  },
}
SCSS
$custom: #1d2197;
$custom-light: #715eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2197",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 238.033,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34713,
    "c": 0.18434,
    "h": 270.3
  },
  "luminance": 0.03583
}

Semantic roles & 50–950 ramp

primary
#1D2197
secondary
#C0BD4F
accent
#E53DEB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1D2197

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

Preview Lab → · Contrast checker → · Palette generator →

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