#1B043B#1B043B

#1B043B is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.8% C 0.097 H 295.3°. Best body text is #FFFFFF at 18.63:1 contrast (WCAG AA passes).

Color values

HEX#1B043B
RGBrgb(27, 4, 59)
HSLhsl(265, 87%, 12%)
HSVhsv(265, 93%, 23%)
CMYKcmyk(54.2%, 93.2%, 0%, 76.9%)
CIE-LABlab(5.74, 25.39, -30.05)
CIE-LCHlch(5.74, 39.34, 310.20°)
OKLaboklab(19.75% 0.0414 -0.0875)
OKLCHoklch(19.75% 0.097 295.3)
XYZxyz(1.2846, 0.6356, 4.1918)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B043B #243B04
analogous
#04083B #1B043B #37043B
triadic
#1B043B #3B1B04 #043B1B
tetradic
#1B043B #3B0408 #243B04 #043B37
square
#1B043B #3B0408 #243B04 #043B37
split-complementary
#1B043B #3B3704 #083B04
monochromatic
#0D021D #0D021D #1B043B #350874 #4F0CAE

Accessibility & contrast

On white

18.63
#1B043B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#1B043B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B043B
18.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B043B#FFFFFF#000000##FFFFFF
##1B043B1.0018.631.1318.63
#FFFFFF18.631.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00133C
Deuteranopia (green-blind)
#00123A
Tritanopia (blue-blind)
#121320
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #1b043b;
/* rgb */ color: rgb(27, 4, 59);
/* oklch */ color: oklch(19.8% 0.097 295.3);
Tailwind
colors: {
  custom: {
    50: '#5c4771',
    500: '#1b043b',
    950: '#000000',
  },
}
SCSS
$custom: #1b043b;
$custom-light: #5c4771;
$custom-dark: #000000;
JSON
{
  "hex": "#1b043b",
  "rgb": {
    "r": 27,
    "g": 4,
    "b": 59
  },
  "hsl": {
    "h": 265.091,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.1975,
    "c": 0.09677,
    "h": 295.3
  },
  "luminance": 0.00636
}

Semantic roles & 50–950 ramp

primary
#1B043B
secondary
#557D1E
accent
#FD2AA5
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040008
muted
#79777B

Preview Lab

Preview with #1B043B

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

Preview Lab → · Contrast checker → · Palette generator →

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