#1B0F4D#1B0F4D

#1B0F4D is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.4% C 0.107 H 283.3°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#1B0F4D
RGBrgb(27, 15, 77)
HSLhsl(252, 67%, 18%)
HSVhsv(252, 81%, 30%)
CMYKcmyk(64.9%, 80.5%, 0%, 69.8%)
CIE-LABlab(9.88, 25.61, -36.00)
CIE-LCHlch(9.88, 44.18, 305.43°)
OKLaboklab(23.43% 0.0246 -0.1037)
OKLCHoklch(23.43% 0.107 283.3)
XYZxyz(1.9620, 1.1104, 7.1307)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0F4D #414D0F
analogous
#0F224D #1B0F4D #3A0F4D
triadic
#1B0F4D #4D1B0F #0F4D1B
tetradic
#1B0F4D #4D0F22 #414D0F #0F4D3A
square
#1B0F4D #4D0F22 #414D0F #0F4D3A
split-complementary
#1B0F4D #4D3A0F #224D0F
monochromatic
#09051A #09051A #1B0F4D #2D1980 #3F23B3

Accessibility & contrast

On white

17.18
#1B0F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#1B0F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0F4D
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0F4D#FFFFFF#000000##FFFFFF
##1B0F4D1.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4F
Deuteranopia (green-blind)
#00194C
Tritanopia (blue-blind)
#00202D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1b0f4d;
/* rgb */ color: rgb(27, 15, 77);
/* oklch */ color: oklch(23.4% 0.107 283.3);
Tailwind
colors: {
  custom: {
    50: '#5f4f80',
    500: '#1b0f4d',
    950: '#000000',
  },
}
SCSS
$custom: #1b0f4d;
$custom-light: #5f4f80;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0f4d",
  "rgb": {
    "r": 27,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 251.613,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.23434,
    "c": 0.1066,
    "h": 283.3
  },
  "luminance": 0.0111
}

Semantic roles & 50–950 ramp

primary
#1B0F4D
secondary
#768731
accent
#EA3EC9
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1B0F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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