#1D2168#1D2168

#1D2168 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.6% C 0.122 H 273.7°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#1D2168
RGBrgb(29, 33, 104)
HSLhsl(237, 56%, 26%)
HSVhsv(237, 72%, 41%)
CMYKcmyk(72.1%, 68.3%, 0%, 59.2%)
CIE-LABlab(17.22, 23.93, -42.11)
CIE-LCHlch(17.22, 48.44, 299.61°)
OKLaboklab(29.61% 0.0079 -0.1216)
OKLCHoklch(29.61% 0.122 273.7)
XYZxyz(3.5484, 2.3481, 13.3602)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2168 #68641D
analogous
#1D4668 #1D2168 #3E1D68
triadic
#1D2168 #681D21 #21681D
tetradic
#1D2168 #681D46 #68641D #1D683E
square
#1D2168 #681D46 #68641D #1D683E
split-complementary
#1D2168 #683E1D #46681D
monochromatic
#070818 #101238 #1D2168 #2A3098 #3840C7

Accessibility & contrast

On white

14.29
#1D2168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1D2168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2168
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2168#FFFFFF#000000##FFFFFF
##1D21681.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6A
Deuteranopia (green-blind)
#002767
Tritanopia (blue-blind)
#003341
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1d2168;
/* rgb */ color: rgb(29, 33, 104);
/* oklch */ color: oklch(29.6% 0.122 273.7);
Tailwind
colors: {
  custom: {
    50: '#645c94',
    500: '#1d2168',
    950: '#000000',
  },
}
SCSS
$custom: #1d2168;
$custom-light: #645c94;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2168",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 236.8,
    "s": 56.391,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29609,
    "c": 0.12182,
    "h": 273.7
  },
  "luminance": 0.02348
}

Semantic roles & 50–950 ramp

primary
#1D2168
secondary
#9D9844
accent
#D848E0
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1D2168

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

Preview Lab → · Contrast checker → · Palette generator →

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