#1B0F4A#1B0F4A

#1B0F4A is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.1% C 0.102 H 284.3°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#1B0F4A
RGBrgb(27, 15, 74)
HSLhsl(252, 66%, 17%)
HSVhsv(252, 80%, 29%)
CMYKcmyk(63.5%, 79.7%, 0%, 71%)
CIE-LABlab(9.55, 24.56, -34.45)
CIE-LCHlch(9.55, 42.31, 305.49°)
OKLaboklab(23.1% 0.0254 -0.0992)
OKLCHoklch(23.1% 0.102 284.3)
XYZxyz(1.8585, 1.0690, 6.5856)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0F4A #3E4A0F
analogous
#0F214A #1B0F4A #380F4A
triadic
#1B0F4A #4A1B0F #0F4A1B
tetradic
#1B0F4A #4A0F21 #3E4A0F #0F4A38
square
#1B0F4A #4A0F21 #3E4A0F #0F4A38
split-complementary
#1B0F4A #4A380F #214A0F
monochromatic
#090519 #090519 #1B0F4A #2E197D #4024B0

Accessibility & contrast

On white

17.30
#1B0F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#1B0F4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0F4A
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0F4A#FFFFFF#000000##FFFFFF
##1B0F4A1.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4C
Deuteranopia (green-blind)
#001949
Tritanopia (blue-blind)
#041F2B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1b0f4a;
/* rgb */ color: rgb(27, 15, 74);
/* oklch */ color: oklch(23.1% 0.102 284.3);
Tailwind
colors: {
  custom: {
    50: '#5e4e7d',
    500: '#1b0f4a',
    950: '#000000',
  },
}
SCSS
$custom: #1b0f4a;
$custom-light: #5e4e7d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0f4a",
  "rgb": {
    "r": 27,
    "g": 15,
    "b": 74
  },
  "hsl": {
    "h": 252.203,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.23104,
    "c": 0.10238,
    "h": 284.3
  },
  "luminance": 0.01069
}

Semantic roles & 50–950 ramp

primary
#1B0F4A
secondary
#738430
accent
#E93FC7
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1B0F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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