#1B0F45#1B0F45

#1B0F45 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.095 H 286.2°. Best body text is #FFFFFF at 17.49:1 contrast (WCAG AA passes).

Color values

HEX#1B0F45
RGBrgb(27, 15, 69)
HSLhsl(253, 64%, 16%)
HSVhsv(253, 78%, 27%)
CMYKcmyk(60.9%, 78.3%, 0%, 72.9%)
CIE-LABlab(9.03, 22.80, -31.81)
CIE-LCHlch(9.03, 39.14, 305.63°)
OKLaboklab(22.57% 0.0265 -0.0915)
OKLCHoklch(22.57% 0.095 286.2)
XYZxyz(1.6967, 1.0042, 5.7335)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0F45 #39450F
analogous
#0F1E45 #1B0F45 #360F45
triadic
#1B0F45 #451B0F #0F451B
tetradic
#1B0F45 #450F1E #39450F #0F4536
square
#1B0F45 #450F1E #39450F #0F4536
split-complementary
#1B0F45 #45360F #1E450F
monochromatic
#0A0519 #0A0519 #1B0F45 #2F1A77 #4225AA

Accessibility & contrast

On white

17.49
#1B0F45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#1B0F45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0F45
17.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0F45#FFFFFF#000000##FFFFFF
##1B0F451.0017.491.2017.49
#FFFFFF17.491.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B47
Deuteranopia (green-blind)
#001844
Tritanopia (blue-blind)
#091D28
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1b0f45;
/* rgb */ color: rgb(27, 15, 69);
/* oklch */ color: oklch(22.6% 0.095 286.2);
Tailwind
colors: {
  custom: {
    50: '#5d4e79',
    500: '#1b0f45',
    950: '#000000',
  },
}
SCSS
$custom: #1b0f45;
$custom-light: #5d4e79;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0f45",
  "rgb": {
    "r": 27,
    "g": 15,
    "b": 69
  },
  "hsl": {
    "h": 253.333,
    "s": 64.286,
    "l": 16.471
  },
  "oklch": {
    "l": 0.22568,
    "c": 0.09524,
    "h": 286.2
  },
  "luminance": 0.01004
}

Semantic roles & 50–950 ramp

primary
#1B0F45
secondary
#6E7F30
accent
#E741C2
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #1B0F45

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

Preview Lab → · Contrast checker → · Palette generator →

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