#1B0F4E#1B0F4E

#1B0F4E is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.108 H 283.0°. Best body text is #FFFFFF at 17.14:1 contrast (WCAG AA passes).

Color values

HEX#1B0F4E
RGBrgb(27, 15, 78)
HSLhsl(251, 68%, 18%)
HSVhsv(251, 81%, 31%)
CMYKcmyk(65.4%, 80.8%, 0%, 69.4%)
CIE-LABlab(9.99, 25.96, -36.51)
CIE-LCHlch(9.99, 44.80, 305.42°)
OKLaboklab(23.55% 0.0243 -0.1052)
OKLCHoklch(23.55% 0.108 283)
XYZxyz(1.9975, 1.1246, 7.3181)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0F4E #424E0F
analogous
#0F224E #1B0F4E #3A0F4E
triadic
#1B0F4E #4E1B0F #0F4E1B
tetradic
#1B0F4E #4E0F22 #424E0F #0F4E3A
square
#1B0F4E #4E0F22 #424E0F #0F4E3A
split-complementary
#1B0F4E #4E3A0F #224E0F
monochromatic
#09051A #09051B #1B0F4E #2D1981 #3F23B5

Accessibility & contrast

On white

17.14
#1B0F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B0F4E
17.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0F4E#FFFFFF#000000##FFFFFF
##1B0F4E1.0017.141.2217.14
#FFFFFF17.141.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D50
Deuteranopia (green-blind)
#00194D
Tritanopia (blue-blind)
#00212D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1b0f4e;
/* rgb */ color: rgb(27, 15, 78);
/* oklch */ color: oklch(23.5% 0.108 283.0);
Tailwind
colors: {
  custom: {
    50: '#5f4f80',
    500: '#1b0f4e',
    950: '#000000',
  },
}
SCSS
$custom: #1b0f4e;
$custom-light: #5f4f80;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0f4e",
  "rgb": {
    "r": 27,
    "g": 15,
    "b": 78
  },
  "hsl": {
    "h": 251.429,
    "s": 67.742,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23546,
    "c": 0.10799,
    "h": 283
  },
  "luminance": 0.01125
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B0F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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