#1B1237#1B1237

#1B1237 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.8% C 0.069 H 290.7°. Best body text is #FFFFFF at 17.67:1 contrast (WCAG AA passes).

Color values

HEX#1B1237
RGBrgb(27, 18, 55)
HSLhsl(255, 51%, 14%)
HSVhsv(255, 67%, 22%)
CMYKcmyk(50.9%, 67.3%, 0%, 78.4%)
CIE-LABlab(8.49, 15.74, -22.69)
CIE-LCHlch(8.49, 27.62, 304.75°)
OKLaboklab(21.77% 0.0245 -0.0646)
OKLCHoklch(21.77% 0.069 290.7)
XYZxyz(1.3577, 0.9414, 3.7239)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1237 #2E3712
analogous
#121C37 #1B1237 #2E1237
triadic
#1B1237 #371B12 #12371B
tetradic
#1B1237 #37121C #2E3712 #12372E
square
#1B1237 #37121C #2E3712 #12372E
split-complementary
#1B1237 #372E12 #1C3712
monochromatic
#0B0817 #0B0817 #1B1237 #322165 #483093

Accessibility & contrast

On white

17.67
#1B1237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#1B1237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1237
17.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1237#FFFFFF#000000##FFFFFF
##1B12371.0017.671.1917.67
#FFFFFF17.671.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011938
Deuteranopia (green-blind)
#021836
Tritanopia (blue-blind)
#131A22
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1b1237;
/* rgb */ color: rgb(27, 18, 55);
/* oklch */ color: oklch(21.8% 0.069 290.7);
Tailwind
colors: {
  custom: {
    50: '#5a506e',
    500: '#1b1237',
    950: '#000000',
  },
}
SCSS
$custom: #1b1237;
$custom-light: #5a506e;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1237",
  "rgb": {
    "r": 27,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 254.595,
    "s": 50.685,
    "l": 14.314
  },
  "oklch": {
    "l": 0.21773,
    "c": 0.06912,
    "h": 290.7
  },
  "luminance": 0.00941
}

Semantic roles & 50–950 ramp

primary
#1B1237
secondary
#617035
accent
#DA4EB8
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040207
muted
#79787A

Preview Lab

Preview with #1B1237

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

Preview Lab → · Contrast checker → · Palette generator →

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