#1D2297#1D2297

#1D2297 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.183 H 270.2°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#1D2297
RGBrgb(29, 34, 151)
HSLhsl(238, 68%, 35%)
HSVhsv(238, 81%, 59%)
CMYKcmyk(80.8%, 77.5%, 0%, 40.8%)
CIE-LABlab(22.44, 40.47, -63.32)
CIE-LCHlch(22.44, 75.15, 302.59°)
OKLaboklab(34.85% 0.0006 -0.1834)
OKLCHoklch(34.85% 0.183 270.2)
XYZxyz(6.6627, 3.6389, 29.6234)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2297 #97921D
analogous
#1D5F97 #1D2297 #551D97
triadic
#1D2297 #971D22 #22971D
tetradic
#1D2297 #971D5F #97921D #1D9755
square
#1D2297 #971D5F #97921D #1D9755
split-complementary
#1D2297 #97551D #5F971D
monochromatic
#090B30 #131664 #1D2297 #272ECA #5157DE

Accessibility & contrast

On white

12.15
#1D2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1D2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2297
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2297#FFFFFF#000000##FFFFFF
##1D22971.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d2297;
/* rgb */ color: rgb(29, 34, 151);
/* oklch */ color: oklch(34.9% 0.183 270.2);
Tailwind
colors: {
  custom: {
    50: '#715fb7',
    500: '#1d2297',
    950: '#000000',
  },
}
SCSS
$custom: #1d2297;
$custom-light: #715fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2297",
  "rgb": {
    "r": 29,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 237.541,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34854,
    "c": 0.1834,
    "h": 270.2
  },
  "luminance": 0.0364
}

Semantic roles & 50–950 ramp

primary
#1D2297
secondary
#C0BC4F
accent
#E43DEB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1D2297

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

Preview Lab → · Contrast checker → · Palette generator →

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