#1D1B7E#1D1B7E

#1D1B7E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.159 H 273.0°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#1D1B7E
RGBrgb(29, 27, 126)
HSLhsl(241, 65%, 30%)
HSVhsv(241, 79%, 49%)
CMYKcmyk(77%, 78.6%, 0%, 50.6%)
CIE-LABlab(18.15, 35.86, -54.78)
CIE-LCHlch(18.15, 65.47, 303.21°)
OKLaboklab(30.98% 0.0082 -0.1585)
OKLCHoklch(30.98% 0.159 273)
XYZxyz(4.6633, 2.5510, 19.9812)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1B7E #7C7E1B
analogous
#1B4B7E #1D1B7E #4E1B7E
triadic
#1D1B7E #7E1D1B #1B7E1D
tetradic
#1D1B7E #7E1B4B #7C7E1B #1B7E4E
square
#1D1B7E #7E1B4B #7C7E1B #1B7E4E
split-complementary
#1D1B7E #7E4E1B #4B7E1B
monochromatic
#060519 #11104C #1D1B7E #2926B0 #413ED6

Accessibility & contrast

On white

13.91
#1D1B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1D1B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1B7E
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1B7E#FFFFFF#000000##FFFFFF
##1D1B7E1.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1d1b7e;
/* rgb */ color: rgb(29, 27, 126);
/* oklch */ color: oklch(31.0% 0.159 273.0);
Tailwind
colors: {
  custom: {
    50: '#6b59a5',
    500: '#1d1b7e',
    950: '#000000',
  },
}
SCSS
$custom: #1d1b7e;
$custom-light: #6b59a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1b7e",
  "rgb": {
    "r": 29,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 241.212,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.30978,
    "c": 0.15873,
    "h": 273
  },
  "luminance": 0.02551
}

Semantic roles & 50–950 ramp

primary
#1D1B7E
secondary
#B0B243
accent
#E840E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1D1B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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