#1B0C5F#1B0C5F

#1B0C5F is a dark, vivid violet. Relative luminance 0.013; OKLCH L 25.1% C 0.134 H 279.0°. Best body text is #FFFFFF at 16.61:1 contrast (WCAG AA passes).

Color values

HEX#1B0C5F
RGBrgb(27, 12, 95)
HSLhsl(251, 78%, 21%)
HSVhsv(251, 87%, 37%)
CMYKcmyk(71.6%, 87.4%, 0%, 62.7%)
CIE-LABlab(11.43, 33.36, -45.69)
CIE-LCHlch(11.43, 56.57, 306.13°)
OKLaboklab(25.15% 0.0209 -0.1319)
OKLCHoklch(25.15% 0.134 279)
XYZxyz(2.6484, 1.3220, 10.9399)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0C5F #505F0C
analogous
#0C265F #1B0C5F #440C5F
triadic
#1B0C5F #5F1B0C #0C5F1B
tetradic
#1B0C5F #5F0C26 #505F0C #0C5F44
square
#1B0C5F #5F0C26 #505F0C #0C5F44
split-complementary
#1B0C5F #5F440C #265F0C
monochromatic
#08031B #0C0529 #1B0C5F #2A1395 #3A1ACC

Accessibility & contrast

On white

16.61
#1B0C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#1B0C5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0C5F
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0C5F#FFFFFF#000000##FFFFFF
##1B0C5F1.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002161
Deuteranopia (green-blind)
#001B5E
Tritanopia (blue-blind)
#002636
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #1b0c5f;
/* rgb */ color: rgb(27, 12, 95);
/* oklch */ color: oklch(25.1% 0.134 279.0);
Tailwind
colors: {
  custom: {
    50: '#634e8d',
    500: '#1b0c5f',
    950: '#000000',
  },
}
SCSS
$custom: #1b0c5f;
$custom-light: #634e8d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0c5f",
  "rgb": {
    "r": 27,
    "g": 12,
    "b": 95
  },
  "hsl": {
    "h": 250.843,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.25149,
    "c": 0.13359,
    "h": 279
  },
  "luminance": 0.01322
}

Semantic roles & 50–950 ramp

primary
#1B0C5F
secondary
#86992D
accent
#F434D1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1B0C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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