#1B0F4F#1B0F4F

#1B0F4F is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.7% C 0.109 H 282.7°. Best body text is #FFFFFF at 17.10:1 contrast (WCAG AA passes).

Color values

HEX#1B0F4F
RGBrgb(27, 15, 79)
HSLhsl(251, 68%, 18%)
HSVhsv(251, 81%, 31%)
CMYKcmyk(65.8%, 81%, 0%, 69%)
CIE-LABlab(10.10, 26.31, -37.02)
CIE-LCHlch(10.10, 45.41, 305.41°)
OKLaboklab(23.66% 0.0241 -0.1067)
OKLCHoklch(23.66% 0.109 282.7)
XYZxyz(2.0337, 1.1390, 7.5083)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0F4F #434F0F
analogous
#0F234F #1B0F4F #3B0F4F
triadic
#1B0F4F #4F1B0F #0F4F1B
tetradic
#1B0F4F #4F0F23 #434F0F #0F4F3B
square
#1B0F4F #4F0F23 #434F0F #0F4F3B
split-complementary
#1B0F4F #4F3B0F #234F0F
monochromatic
#09051A #09051C #1B0F4F #2D1982 #3E23B6

Accessibility & contrast

On white

17.10
#1B0F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#1B0F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0F4F
17.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0F4F#FFFFFF#000000##FFFFFF
##1B0F4F1.0017.101.2317.10
#FFFFFF17.101.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E51
Deuteranopia (green-blind)
#00194E
Tritanopia (blue-blind)
#00212E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1b0f4f;
/* rgb */ color: rgb(27, 15, 79);
/* oklch */ color: oklch(23.7% 0.109 282.7);
Tailwind
colors: {
  custom: {
    50: '#5f4f81',
    500: '#1b0f4f',
    950: '#000000',
  },
}
SCSS
$custom: #1b0f4f;
$custom-light: #5f4f81;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0f4f",
  "rgb": {
    "r": 27,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 251.25,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.23658,
    "c": 0.10938,
    "h": 282.7
  },
  "luminance": 0.01139
}

Semantic roles & 50–950 ramp

primary
#1B0F4F
secondary
#798931
accent
#EB3DCA
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1B0F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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