#1D167E#1D167E

#1D167E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.163 H 273.6°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#1D167E
RGBrgb(29, 22, 126)
HSLhsl(244, 70%, 29%)
HSVhsv(244, 83%, 49%)
CMYKcmyk(77%, 82.5%, 0%, 50.6%)
CIE-LABlab(17.18, 38.63, -56.37)
CIE-LCHlch(17.18, 68.34, 304.42°)
OKLaboklab(30.3% 0.0103 -0.1631)
OKLCHoklch(30.3% 0.163 273.6)
XYZxyz(4.5582, 2.3409, 19.9462)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D167E #777E16
analogous
#16437E #1D167E #51167E
triadic
#1D167E #7E1D16 #167E1D
tetradic
#1D167E #7E1643 #777E16 #167E51
square
#1D167E #7E1643 #777E16 #167E51
split-complementary
#1D167E #7E5116 #437E16
monochromatic
#06051A #110D4A #1D167E #291FB2 #3E33DB

Accessibility & contrast

On white

14.30
#1D167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D167E
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D167E#FFFFFF#000000##FFFFFF
##1D167E1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1d167e;
/* rgb */ color: rgb(29, 22, 126);
/* oklch */ color: oklch(30.3% 0.163 273.6);
Tailwind
colors: {
  custom: {
    50: '#6b56a5',
    500: '#1d167e',
    950: '#000000',
  },
}
SCSS
$custom: #1d167e;
$custom-light: #6b56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d167e",
  "rgb": {
    "r": 29,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 244.038,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30302,
    "c": 0.1634,
    "h": 273.6
  },
  "luminance": 0.02341
}

Semantic roles & 50–950 ramp

primary
#1D167E
secondary
#ABB33D
accent
#ED3BE1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1D167E

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

Preview Lab → · Contrast checker → · Palette generator →

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