#1D155F#1D155F

#1D155F is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.6% C 0.124 H 278.6°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#1D155F
RGBrgb(29, 21, 95)
HSLhsl(246, 64%, 23%)
HSVhsv(246, 78%, 37%)
CMYKcmyk(69.5%, 77.9%, 0%, 62.7%)
CIE-LABlab(13.37, 28.54, -42.47)
CIE-LCHlch(13.37, 51.17, 303.90°)
OKLaboklab(26.56% 0.0186 -0.1226)
OKLCHoklch(26.56% 0.124 278.6)
XYZxyz(2.8398, 1.6235, 10.9880)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D155F #575F15
analogous
#15325F #1D155F #42155F
triadic
#1D155F #5F1D15 #155F1D
tetradic
#1D155F #5F1532 #575F15 #155F42
square
#1D155F #5F1532 #575F15 #155F42
split-complementary
#1D155F #5F4215 #325F15
monochromatic
#080619 #0E0A2D #1D155F #2C2091 #3C2BC3

Accessibility & contrast

On white

15.85
#1D155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D155F
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D155F#FFFFFF#000000##FFFFFF
##1D155F1.0015.851.3215.85
#FFFFFF15.851.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#001F5E
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1d155f;
/* rgb */ color: rgb(29, 21, 95);
/* oklch */ color: oklch(26.6% 0.124 278.6);
Tailwind
colors: {
  custom: {
    50: '#63538d',
    500: '#1d155f',
    950: '#000000',
  },
}
SCSS
$custom: #1d155f;
$custom-light: #63538d;
$custom-dark: #000000;
JSON
{
  "hex": "#1d155f",
  "rgb": {
    "r": 29,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 246.486,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.26557,
    "c": 0.12401,
    "h": 278.6
  },
  "luminance": 0.01624
}

Semantic roles & 50–950 ramp

primary
#1D155F
secondary
#8C963A
accent
#E741D5
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1D155F

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

Preview Lab → · Contrast checker → · Palette generator →

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