#1D165B#1D165B

#1D165B is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.3% C 0.117 H 279.2°. Best body text is #FFFFFF at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#1D165B
RGBrgb(29, 22, 91)
HSLhsl(246, 61%, 22%)
HSVhsv(246, 76%, 36%)
CMYKcmyk(68.1%, 75.8%, 0%, 64.3%)
CIE-LABlab(13.17, 26.47, -40.13)
CIE-LCHlch(13.17, 48.07, 303.42°)
OKLaboklab(26.28% 0.0187 -0.1158)
OKLCHoklch(26.28% 0.117 279.2)
XYZxyz(2.6813, 1.5902, 10.0611)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D165B #545B16
analogous
#16325B #1D165B #40165B
triadic
#1D165B #5B1D16 #165B1D
tetradic
#1D165B #5B1632 #545B16 #165B40
square
#1D165B #5B1632 #545B16 #165B40
split-complementary
#1D165B #5B4016 #325B16
monochromatic
#080619 #0D0A2A #1D165B #2D228C #3C2EBE

Accessibility & contrast

On white

15.93
#1D165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#1D165B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D165B
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D165B#FFFFFF#000000##FFFFFF
##1D165B1.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#001F5A
Tritanopia (blue-blind)
#002936
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1d165b;
/* rgb */ color: rgb(29, 22, 91);
/* oklch */ color: oklch(26.3% 0.117 279.2);
Tailwind
colors: {
  custom: {
    50: '#62548a',
    500: '#1d165b',
    950: '#000000',
  },
}
SCSS
$custom: #1d165b;
$custom-light: #62548a;
$custom-dark: #000000;
JSON
{
  "hex": "#1d165b",
  "rgb": {
    "r": 29,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 246.087,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26282,
    "c": 0.11726,
    "h": 279.2
  },
  "luminance": 0.0159
}

Semantic roles & 50–950 ramp

primary
#1D165B
secondary
#89923B
accent
#E444D4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1D165B

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

Preview Lab → · Contrast checker → · Palette generator →

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