#1D2162#1D2162

#1D2162 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 29.0% C 0.113 H 274.2°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#1D2162
RGBrgb(29, 33, 98)
HSLhsl(237, 54%, 25%)
HSVhsv(237, 70%, 38%)
CMYKcmyk(70.4%, 66.3%, 0%, 61.6%)
CIE-LABlab(16.65, 21.61, -39.09)
CIE-LCHlch(16.65, 44.67, 298.94°)
OKLaboklab(29.02% 0.0083 -0.1127)
OKLCHoklch(29.02% 0.113 274.2)
XYZxyz(3.2544, 2.2305, 11.8119)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2162 #625E1D
analogous
#1D4362 #1D2162 #3C1D62
triadic
#1D2162 #621D21 #21621D
tetradic
#1D2162 #621D43 #625E1D #1D623C
square
#1D2162 #621D43 #625E1D #1D623C
split-complementary
#1D2162 #623C1D #43621D
monochromatic
#070818 #0F1133 #1D2162 #2B3191 #3941C0

Accessibility & contrast

On white

14.52
#1D2162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1D2162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2162
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2162#FFFFFF#000000##FFFFFF
##1D21621.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#002661
Tritanopia (blue-blind)
#00313E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1d2162;
/* rgb */ color: rgb(29, 33, 98);
/* oklch */ color: oklch(29.0% 0.113 274.2);
Tailwind
colors: {
  custom: {
    50: '#635c8f',
    500: '#1d2162',
    950: '#000000',
  },
}
SCSS
$custom: #1d2162;
$custom-light: #635c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2162",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 236.522,
    "s": 54.331,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29021,
    "c": 0.113,
    "h": 274.2
  },
  "luminance": 0.02231
}

Semantic roles & 50–950 ramp

primary
#1D2162
secondary
#979244
accent
#D54ADE
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #1D2162

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

Preview Lab → · Contrast checker → · Palette generator →

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