#1B042E#1B042E

#1B042E is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.3% C 0.081 H 305.0°. Best body text is #FFFFFF at 19.03:1 contrast (WCAG AA passes).

Color values

HEX#1B042E
RGBrgb(27, 4, 46)
HSLhsl(273, 84%, 10%)
HSVhsv(273, 91%, 18%)
CMYKcmyk(41.3%, 91.3%, 0%, 82%)
CIE-LABlab(4.67, 20.04, -22.19)
CIE-LCHlch(4.67, 29.90, 312.08°)
OKLaboklab(18.32% 0.0464 -0.0662)
OKLCHoklch(18.32% 0.081 305)
XYZxyz(0.9884, 0.5171, 2.6320)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B042E #172E04
analogous
#06042E #1B042E #2E042C
triadic
#1B042E #2E1B04 #042E1B
tetradic
#1B042E #2E0604 #172E04 #042C2E
square
#1B042E #2E0604 #172E04 #042C2E
split-complementary
#1B042E #2C2E04 #042E06
monochromatic
#11021C #11021C #1B042E #3C0966 #5D0E9F

Accessibility & contrast

On white

19.03
#1B042E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#1B042E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B042E
19.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B042E#FFFFFF#000000##FFFFFF
##1B042E1.0019.031.1019.03
#FFFFFF19.031.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2F
Deuteranopia (green-blind)
#00102D
Tritanopia (blue-blind)
#170E18
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1b042e;
/* rgb */ color: rgb(27, 4, 46);
/* oklch */ color: oklch(18.3% 0.081 305.0);
Tailwind
colors: {
  custom: {
    50: '#594867',
    500: '#1b042e',
    950: '#000000',
  },
}
SCSS
$custom: #1b042e;
$custom-light: #594867;
$custom-dark: #000000;
JSON
{
  "hex": "#1b042e",
  "rgb": {
    "r": 27,
    "g": 4,
    "b": 46
  },
  "hsl": {
    "h": 272.857,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.18322,
    "c": 0.08087,
    "h": 305
  },
  "luminance": 0.00517
}

Semantic roles & 50–950 ramp

primary
#1B042E
secondary
#43711D
accent
#FA2E8A
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1B042E

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

Preview Lab → · Contrast checker → · Palette generator →

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