#1B0F52#1B0F52

#1B0F52 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.114 H 281.8°. Best body text is #FFFFFF at 16.98:1 contrast (WCAG AA passes).

Color values

HEX#1B0F52
RGBrgb(27, 15, 82)
HSLhsl(251, 69%, 19%)
HSVhsv(251, 82%, 32%)
CMYKcmyk(67.1%, 81.7%, 0%, 67.8%)
CIE-LABlab(10.44, 27.35, -38.52)
CIE-LCHlch(10.44, 47.25, 305.38°)
OKLaboklab(24% 0.0232 -0.1111)
OKLCHoklch(24% 0.114 281.8)
XYZxyz(2.1453, 1.1837, 8.0964)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0F52 #46520F
analogous
#0F2552 #1B0F52 #3D0F52
triadic
#1B0F52 #521B0F #0F521B
tetradic
#1B0F52 #520F25 #46520F #0F523D
square
#1B0F52 #520F25 #46520F #0F523D
split-complementary
#1B0F52 #523D0F #25520F
monochromatic
#09051A #0A061E #1B0F52 #2C1886 #3D22B9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1B0F52#FFFFFF#000000##FFFFFF
##1B0F521.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)
#001F54
Deuteranopia (green-blind)
#001A51
Tritanopia (blue-blind)
#002230
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1b0f52;
/* rgb */ color: rgb(27, 15, 82);
/* oklch */ color: oklch(24.0% 0.114 281.8);
Tailwind
colors: {
  custom: {
    50: '#604f83',
    500: '#1b0f52',
    950: '#000000',
  },
}
SCSS
$custom: #1b0f52;
$custom-light: #604f83;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0f52",
  "rgb": {
    "r": 27,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 250.746,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.23997,
    "c": 0.1135,
    "h": 281.8
  },
  "luminance": 0.01184
}

Semantic roles & 50–950 ramp

primary
#1B0F52
secondary
#7C8C31
accent
#EC3CCC
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#05020B
muted
#7A787C

Preview Lab

Preview with #1B0F52

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

Preview Lab → · Contrast checker → · Palette generator →

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