#1B112E#1B112E

#1B112E is a very dark, muted violet. Relative luminance 0.008; OKLCH L 20.8% C 0.056 H 297.2°. Best body text is #FFFFFF at 18.01:1 contrast (WCAG AA passes).

Color values

HEX#1B112E
RGBrgb(27, 17, 46)
HSLhsl(261, 46%, 12%)
HSVhsv(261, 63%, 18%)
CMYKcmyk(41.3%, 63%, 0%, 82%)
CIE-LABlab(7.51, 13.31, -17.68)
CIE-LCHlch(7.51, 22.13, 306.97°)
OKLaboklab(20.81% 0.0257 -0.05)
OKLCHoklch(20.81% 0.056 297.2)
XYZxyz(1.1455, 0.8312, 2.6843)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B112E #242E11
analogous
#11152E #1B112E #2A112E
triadic
#1B112E #2E1B11 #112E1B
tetradic
#1B112E #2E1115 #242E11 #112E2A
square
#1B112E #2E1115 #242E11 #112E2A
split-complementary
#1B112E #2E2A11 #152E11
monochromatic
#0D0816 #0D0816 #1B112E #35225B #4F3287

Accessibility & contrast

On white

18.01
#1B112E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#1B112E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B112E
18.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B112E#FFFFFF#000000##FFFFFF
##1B112E1.0018.011.1718.01
#FFFFFF18.011.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06172F
Deuteranopia (green-blind)
#09162D
Tritanopia (blue-blind)
#17171D
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #1b112e;
/* rgb */ color: rgb(27, 17, 46);
/* oklch */ color: oklch(20.8% 0.056 297.2);
Tailwind
colors: {
  custom: {
    50: '#594f67',
    500: '#1b112e',
    950: '#000000',
  },
}
SCSS
$custom: #1b112e;
$custom-light: #594f67;
$custom-dark: #000000;
JSON
{
  "hex": "#1b112e",
  "rgb": {
    "r": 27,
    "g": 17,
    "b": 46
  },
  "hsl": {
    "h": 260.69,
    "s": 46.032,
    "l": 12.353
  },
  "oklch": {
    "l": 0.20808,
    "c": 0.0562,
    "h": 297.2
  },
  "luminance": 0.00831
}

Semantic roles & 50–950 ramp

primary
#1B112E
secondary
#556634
accent
#D652A8
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #1B112E

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

Preview Lab → · Contrast checker → · Palette generator →

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