#1B0C57#1B0C57

#1B0C57 is a very dark, vivid violet. Relative luminance 0.012; OKLCH L 24.2% C 0.123 H 281.1°. Best body text is #FFFFFF at 16.98:1 contrast (WCAG AA passes).

Color values

HEX#1B0C57
RGBrgb(27, 12, 87)
HSLhsl(252, 76%, 19%)
HSVhsv(252, 86%, 34%)
CMYKcmyk(69%, 86.2%, 0%, 65.9%)
CIE-LABlab(10.44, 30.73, -41.93)
CIE-LCHlch(10.44, 51.99, 306.24°)
OKLaboklab(24.17% 0.0237 -0.121)
OKLCHoklch(24.17% 0.123 281.1)
XYZxyz(2.3032, 1.1839, 9.1221)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0C57 #48570C
analogous
#0C2357 #1B0C57 #410C57
triadic
#1B0C57 #571B0C #0C571B
tetradic
#1B0C57 #570C23 #48570C #0C5741
square
#1B0C57 #570C23 #48570C #0C5741
split-complementary
#1B0C57 #57410C #23570C
monochromatic
#08041B #0A0521 #1B0C57 #2C138D #3C1BC3

Accessibility & contrast

On white

16.98
#1B0C57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#1B0C57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0C57
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0C57#FFFFFF#000000##FFFFFF
##1B0C571.0016.981.2416.98
#FFFFFF16.981.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F59
Deuteranopia (green-blind)
#001A56
Tritanopia (blue-blind)
#002332
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1b0c57;
/* rgb */ color: rgb(27, 12, 87);
/* oklch */ color: oklch(24.2% 0.123 281.1);
Tailwind
colors: {
  custom: {
    50: '#614e87',
    500: '#1b0c57',
    950: '#000000',
  },
}
SCSS
$custom: #1b0c57;
$custom-light: #614e87;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0c57",
  "rgb": {
    "r": 27,
    "g": 12,
    "b": 87
  },
  "hsl": {
    "h": 252,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.24173,
    "c": 0.12331,
    "h": 281.1
  },
  "luminance": 0.01184
}

Semantic roles & 50–950 ramp

primary
#1B0C57
secondary
#7E922D
accent
#F235CD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06010B
muted
#7A777C

Preview Lab

Preview with #1B0C57

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

Preview Lab → · Contrast checker → · Palette generator →

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