#1B0948#1B0948

#1B0948 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.0% C 0.107 H 287.0°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#1B0948
RGBrgb(27, 9, 72)
HSLhsl(257, 78%, 16%)
HSVhsv(257, 88%, 28%)
CMYKcmyk(62.5%, 87.5%, 0%, 71.8%)
CIE-LABlab(8.10, 27.39, -35.45)
CIE-LCHlch(8.10, 44.80, 307.69°)
OKLaboklab(22.01% 0.0311 -0.1021)
OKLCHoklch(22.01% 0.107 287)
XYZxyz(1.7190, 0.8962, 6.2120)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0948 #364809
analogous
#091648 #1B0948 #3A0948
triadic
#1B0948 #481B09 #09481B
tetradic
#1B0948 #480916 #364809 #09483A
square
#1B0948 #480916 #364809 #09483A
split-complementary
#1B0948 #483A09 #164809
monochromatic
#0A031B #0A031B #1B0948 #2F107E #4417B5

Accessibility & contrast

On white

17.81
#1B0948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#1B0948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0948
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0948#FFFFFF#000000##FFFFFF
##1B09481.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00194A
Deuteranopia (green-blind)
#001647
Tritanopia (blue-blind)
#061B28
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1b0948;
/* rgb */ color: rgb(27, 9, 72);
/* oklch */ color: oklch(22.0% 0.107 287.0);
Tailwind
colors: {
  custom: {
    50: '#5e4b7c',
    500: '#1b0948',
    950: '#000000',
  },
}
SCSS
$custom: #1b0948;
$custom-light: #5e4b7c;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0948",
  "rgb": {
    "r": 27,
    "g": 9,
    "b": 72
  },
  "hsl": {
    "h": 257.143,
    "s": 77.778,
    "l": 15.882
  },
  "oklch": {
    "l": 0.22012,
    "c": 0.1067,
    "h": 287
  },
  "luminance": 0.00896
}

Semantic roles & 50–950 ramp

primary
#1B0948
secondary
#6B8527
accent
#F434BD
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #1B0948

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

Preview Lab → · Contrast checker → · Palette generator →

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