#1B042F#1B042F

#1B042F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.4% C 0.082 H 304.2°. Best body text is #FFFFFF at 19.00:1 contrast (WCAG AA passes).

Color values

HEX#1B042F
RGBrgb(27, 4, 47)
HSLhsl(272, 84%, 10%)
HSVhsv(272, 91%, 18%)
CMYKcmyk(42.6%, 91.5%, 0%, 81.6%)
CIE-LABlab(4.74, 20.46, -22.82)
CIE-LCHlch(4.74, 30.65, 311.87°)
OKLaboklab(18.43% 0.0461 -0.0679)
OKLCHoklch(18.43% 0.082 304.2)
XYZxyz(1.0084, 0.5251, 2.7370)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B042F #182F04
analogous
#05042F #1B042F #2F042E
triadic
#1B042F #2F1B04 #042F1B
tetradic
#1B042F #2F0504 #182F04 #042E2F
square
#1B042F #2F0504 #182F04 #042E2F
split-complementary
#1B042F #2E2F04 #042F05
monochromatic
#10021C #10021C #1B042F #3B0967 #5C0EA0

Accessibility & contrast

On white

19.00
#1B042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#1B042F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B042F
19.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B042F#FFFFFF#000000##FFFFFF
##1B042F1.0019.001.1119.00
#FFFFFF19.001.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF19.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001030
Deuteranopia (green-blind)
#00102E
Tritanopia (blue-blind)
#170E19
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1b042f;
/* rgb */ color: rgb(27, 4, 47);
/* oklch */ color: oklch(18.4% 0.082 304.2);
Tailwind
colors: {
  custom: {
    50: '#594868',
    500: '#1b042f',
    950: '#000000',
  },
}
SCSS
$custom: #1b042f;
$custom-light: #594868;
$custom-dark: #000000;
JSON
{
  "hex": "#1b042f",
  "rgb": {
    "r": 27,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 272.093,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.18426,
    "c": 0.08211,
    "h": 304.2
  },
  "luminance": 0.00525
}

Semantic roles & 50–950 ramp

primary
#1B042F
secondary
#44721D
accent
#FB2D8D
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1B042F

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

Preview Lab → · Contrast checker → · Palette generator →

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