#1B0231#1B0231

#1B0231 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.2% C 0.089 H 303.4°. Best body text is #FFFFFF at 19.10:1 contrast (WCAG AA passes).

Color values

HEX#1B0231
RGBrgb(27, 2, 49)
HSLhsl(272, 92%, 10%)
HSVhsv(272, 96%, 19%)
CMYKcmyk(44.9%, 95.9%, 0%, 80.8%)
CIE-LABlab(4.50, 22.21, -24.70)
CIE-LCHlch(4.50, 33.22, 311.95°)
OKLaboklab(18.25% 0.0489 -0.0739)
OKLCHoklch(18.25% 0.089 303.4)
XYZxyz(1.0279, 0.4982, 2.9471)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0231 #183102
analogous
#040231 #1B0231 #31022F
triadic
#1B0231 #311B02 #02311B
tetradic
#1B0231 #310402 #183102 #022F31
square
#1B0231 #310402 #183102 #022F31
split-complementary
#1B0231 #2F3102 #023104
monochromatic
#10011D #10011D #1B0231 #3B046C #5C07A7

Accessibility & contrast

On white

19.10
#1B0231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#1B0231 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0231
19.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0231#FFFFFF#000000##FFFFFF
##1B02311.0019.101.1019.10
#FFFFFF19.101.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F32
Deuteranopia (green-blind)
#000F30
Tritanopia (blue-blind)
#160E19
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1b0231;
/* rgb */ color: rgb(27, 2, 49);
/* oklch */ color: oklch(18.2% 0.089 303.4);
Tailwind
colors: {
  custom: {
    50: '#594669',
    500: '#1b0231',
    950: '#000000',
  },
}
SCSS
$custom: #1b0231;
$custom-light: #594669;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0231",
  "rgb": {
    "r": 27,
    "g": 2,
    "b": 49
  },
  "hsl": {
    "h": 271.915,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.18249,
    "c": 0.08863,
    "h": 303.4
  },
  "luminance": 0.00498
}

Semantic roles & 50–950 ramp

primary
#1B0231
secondary
#447519
accent
#FF298D
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1B0231

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

Preview Lab → · Contrast checker → · Palette generator →

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