#1D165C#1D165C

#1D165C is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.4% C 0.119 H 279.0°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#1D165C
RGBrgb(29, 22, 92)
HSLhsl(246, 61%, 22%)
HSVhsv(246, 76%, 36%)
CMYKcmyk(68.5%, 76.1%, 0%, 63.9%)
CIE-LABlab(13.28, 26.84, -40.62)
CIE-LCHlch(13.28, 48.69, 303.45°)
OKLaboklab(26.39% 0.0185 -0.1172)
OKLCHoklch(26.39% 0.119 279)
XYZxyz(2.7248, 1.6075, 10.2898)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D165C #555C16
analogous
#16325C #1D165C #40165C
triadic
#1D165C #5C1D16 #165C1D
tetradic
#1D165C #5C1632 #555C16 #165C40
square
#1D165C #5C1632 #555C16 #165C40
split-complementary
#1D165C #5C4016 #325C16
monochromatic
#080619 #0D0A2B #1D165C #2D228D #3C2EBF

Accessibility & contrast

On white

15.89
#1D165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D165C
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D165C#FFFFFF#000000##FFFFFF
##1D165C1.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#001F5B
Tritanopia (blue-blind)
#002937
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1d165c;
/* rgb */ color: rgb(29, 22, 92);
/* oklch */ color: oklch(26.4% 0.119 279.0);
Tailwind
colors: {
  custom: {
    50: '#63548b',
    500: '#1d165c',
    950: '#000000',
  },
}
SCSS
$custom: #1d165c;
$custom-light: #63548b;
$custom-dark: #000000;
JSON
{
  "hex": "#1d165c",
  "rgb": {
    "r": 29,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 246,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2639,
    "c": 0.11867,
    "h": 279
  },
  "luminance": 0.01608
}

Semantic roles & 50–950 ramp

primary
#1D165C
secondary
#8A933B
accent
#E543D4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #1D165C

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

Preview Lab → · Contrast checker → · Palette generator →

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