#1B0D5F#1B0D5F

#1B0D5F is a dark, vivid violet. Relative luminance 0.013; OKLCH L 25.3% C 0.133 H 278.9°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#1B0D5F
RGBrgb(27, 13, 95)
HSLhsl(250, 76%, 21%)
HSVhsv(250, 86%, 37%)
CMYKcmyk(71.6%, 86.3%, 0%, 62.7%)
CIE-LABlab(11.60, 32.86, -45.40)
CIE-LCHlch(11.60, 56.05, 305.89°)
OKLaboklab(25.27% 0.0204 -0.1311)
OKLCHoklch(25.27% 0.133 278.9)
XYZxyz(2.6608, 1.3469, 10.9440)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0D5F #515F0D
analogous
#0D285F #1B0D5F #440D5F
triadic
#1B0D5F #5F1B0D #0D5F1B
tetradic
#1B0D5F #5F0D28 #515F0D #0D5F44
square
#1B0D5F #5F0D28 #515F0D #0D5F44
split-complementary
#1B0D5F #5F440D #285F0D
monochromatic
#08041B #0C0629 #1B0D5F #2A1495 #3A1CCB

Accessibility & contrast

On white

16.54
#1B0D5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#1B0D5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0D5F
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0D5F#FFFFFF#000000##FFFFFF
##1B0D5F1.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002261
Deuteranopia (green-blind)
#001B5E
Tritanopia (blue-blind)
#002637
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1b0d5f;
/* rgb */ color: rgb(27, 13, 95);
/* oklch */ color: oklch(25.3% 0.133 278.9);
Tailwind
colors: {
  custom: {
    50: '#634f8d',
    500: '#1b0d5f',
    950: '#000000',
  },
}
SCSS
$custom: #1b0d5f;
$custom-light: #634f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0d5f",
  "rgb": {
    "r": 27,
    "g": 13,
    "b": 95
  },
  "hsl": {
    "h": 250.244,
    "s": 75.926,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25267,
    "c": 0.13271,
    "h": 278.9
  },
  "luminance": 0.01347
}

Semantic roles & 50–950 ramp

primary
#1B0D5F
secondary
#87992F
accent
#F335D2
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1B0D5F

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

Preview Lab → · Contrast checker → · Palette generator →

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