#1B0239#1B0239

#1B0239 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.2% C 0.098 H 297.4°. Best body text is #FFFFFF at 18.84:1 contrast (WCAG AA passes).

Color values

HEX#1B0239
RGBrgb(27, 2, 57)
HSLhsl(267, 93%, 12%)
HSVhsv(267, 96%, 22%)
CMYKcmyk(52.6%, 96.5%, 0%, 77.6%)
CIE-LABlab(5.17, 25.58, -29.53)
CIE-LCHlch(5.17, 39.07, 310.91°)
OKLaboklab(19.17% 0.0451 -0.0867)
OKLCHoklch(19.17% 0.098 297.4)
XYZxyz(1.2120, 0.5718, 3.9166)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0239 #203902
analogous
#020439 #1B0239 #370239
triadic
#1B0239 #391B02 #02391B
tetradic
#1B0239 #390204 #203902 #023937
square
#1B0239 #390204 #203902 #023937
split-complementary
#1B0239 #393702 #043902
monochromatic
#0E011E #0E011E #1B0239 #370474 #5306AF

Accessibility & contrast

On white

18.84
#1B0239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#1B0239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0239
18.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0239#FFFFFF#000000##FFFFFF
##1B02391.0018.841.1118.84
#FFFFFF18.841.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00113A
Deuteranopia (green-blind)
#001138
Tritanopia (blue-blind)
#13111E
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1b0239;
/* rgb */ color: rgb(27, 2, 57);
/* oklch */ color: oklch(19.2% 0.098 297.4);
Tailwind
colors: {
  custom: {
    50: '#5b4670',
    500: '#1b0239',
    950: '#000000',
  },
}
SCSS
$custom: #1b0239;
$custom-light: #5b4670;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0239",
  "rgb": {
    "r": 27,
    "g": 2,
    "b": 57
  },
  "hsl": {
    "h": 267.273,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.19169,
    "c": 0.09774,
    "h": 297.4
  },
  "luminance": 0.00572
}

Semantic roles & 50–950 ramp

primary
#1B0239
secondary
#507D1A
accent
#FF299E
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040007
muted
#79777A

Preview Lab

Preview with #1B0239

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

Preview Lab → · Contrast checker → · Palette generator →

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