#1D2397#1D2397

#1D2397 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.182 H 270.1°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#1D2397
RGBrgb(29, 35, 151)
HSLhsl(237, 68%, 35%)
HSVhsv(237, 81%, 59%)
CMYKcmyk(80.8%, 76.8%, 0%, 40.8%)
CIE-LABlab(22.64, 39.90, -62.98)
CIE-LCHlch(22.64, 74.56, 302.35°)
OKLaboklab(35% 0.0003 -0.1824)
OKLCHoklch(35% 0.182 270.1)
XYZxyz(6.6917, 3.6969, 29.6330)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2397 #97911D
analogous
#1D6097 #1D2397 #541D97
triadic
#1D2397 #971D23 #23971D
tetradic
#1D2397 #971D60 #97911D #1D9754
square
#1D2397 #971D60 #97911D #1D9754
split-complementary
#1D2397 #97541D #60971D
monochromatic
#090B30 #131764 #1D2397 #272FCA #5158DE

Accessibility & contrast

On white

12.07
#1D2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1D2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2397
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2397#FFFFFF#000000##FFFFFF
##1D23971.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003095
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1d2397;
/* rgb */ color: rgb(29, 35, 151);
/* oklch */ color: oklch(35.0% 0.182 270.1);
Tailwind
colors: {
  custom: {
    50: '#715fb7',
    500: '#1d2397',
    950: '#000000',
  },
}
SCSS
$custom: #1d2397;
$custom-light: #715fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2397",
  "rgb": {
    "r": 29,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 237.049,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34998,
    "c": 0.18243,
    "h": 270.1
  },
  "luminance": 0.03698
}

Semantic roles & 50–950 ramp

primary
#1D2397
secondary
#C0BB4F
accent
#E23DEB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1D2397

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

Preview Lab → · Contrast checker → · Palette generator →

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