#1D165F#1D165F

#1D165F is a dark, vivid blue. Relative luminance 0.017; OKLCH L 26.7% C 0.123 H 278.4°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#1D165F
RGBrgb(29, 22, 95)
HSLhsl(246, 62%, 23%)
HSVhsv(246, 77%, 37%)
CMYKcmyk(69.5%, 76.8%, 0%, 62.7%)
CIE-LABlab(13.60, 27.92, -42.10)
CIE-LCHlch(13.60, 50.52, 303.55°)
OKLaboklab(26.72% 0.0179 -0.1215)
OKLCHoklch(26.72% 0.123 278.4)
XYZxyz(2.8585, 1.6610, 10.9942)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D165F #585F16
analogous
#16345F #1D165F #41165F
triadic
#1D165F #5F1D16 #165F1D
tetradic
#1D165F #5F1634 #585F16 #165F41
square
#1D165F #5F1634 #585F16 #165F41
split-complementary
#1D165F #5F4116 #345F16
monochromatic
#080619 #0E0A2D #1D165F #2C2291 #3B2DC2

Accessibility & contrast

On white

15.76
#1D165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D165F
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D165F#FFFFFF#000000##FFFFFF
##1D165F1.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00205E
Tritanopia (blue-blind)
#002A39
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1d165f;
/* rgb */ color: rgb(29, 22, 95);
/* oklch */ color: oklch(26.7% 0.123 278.4);
Tailwind
colors: {
  custom: {
    50: '#63548d',
    500: '#1d165f',
    950: '#000000',
  },
}
SCSS
$custom: #1d165f;
$custom-light: #63548d;
$custom-dark: #000000;
JSON
{
  "hex": "#1d165f",
  "rgb": {
    "r": 29,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 245.753,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.26716,
    "c": 0.12285,
    "h": 278.4
  },
  "luminance": 0.01661
}

Semantic roles & 50–950 ramp

primary
#1D165F
secondary
#8D963B
accent
#E542D6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #1D165F

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

Preview Lab → · Contrast checker → · Palette generator →

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