#1D165E#1D165E

#1D165E is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.6% C 0.121 H 278.6°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#1D165E
RGBrgb(29, 22, 94)
HSLhsl(246, 62%, 23%)
HSVhsv(246, 77%, 37%)
CMYKcmyk(69.1%, 76.6%, 0%, 63.1%)
CIE-LABlab(13.49, 27.56, -41.61)
CIE-LCHlch(13.49, 49.91, 303.51°)
OKLaboklab(26.61% 0.0181 -0.1201)
OKLCHoklch(26.61% 0.121 278.6)
XYZxyz(2.8133, 1.6430, 10.7564)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D165E #575E16
analogous
#16335E #1D165E #41165E
triadic
#1D165E #5E1D16 #165E1D
tetradic
#1D165E #5E1633 #575E16 #165E41
square
#1D165E #5E1633 #575E16 #165E41
split-complementary
#1D165E #5E4116 #335E16
monochromatic
#080619 #0E0A2C #1D165E #2C2290 #3C2DC1

Accessibility & contrast

On white

15.81
#1D165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#1D165E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D165E
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D165E#FFFFFF#000000##FFFFFF
##1D165E1.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#00205D
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1d165e;
/* rgb */ color: rgb(29, 22, 94);
/* oklch */ color: oklch(26.6% 0.121 278.6);
Tailwind
colors: {
  custom: {
    50: '#63548c',
    500: '#1d165e',
    950: '#000000',
  },
}
SCSS
$custom: #1d165e;
$custom-light: #63548c;
$custom-dark: #000000;
JSON
{
  "hex": "#1d165e",
  "rgb": {
    "r": 29,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 245.833,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.26607,
    "c": 0.12146,
    "h": 278.6
  },
  "luminance": 0.01643
}

Semantic roles & 50–950 ramp

primary
#1D165E
secondary
#8C953B
accent
#E543D5
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #1D165E

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

Preview Lab → · Contrast checker → · Palette generator →

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