#1B043A#1B043A

#1B043A is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.6% C 0.096 H 296.0°. Best body text is #FFFFFF at 18.67:1 contrast (WCAG AA passes).

Color values

HEX#1B043A
RGBrgb(27, 4, 58)
HSLhsl(266, 87%, 12%)
HSVhsv(266, 93%, 23%)
CMYKcmyk(53.4%, 93.1%, 0%, 77.3%)
CIE-LABlab(5.65, 24.99, -29.47)
CIE-LCHlch(5.65, 38.64, 310.29°)
OKLaboklab(19.63% 0.0419 -0.0859)
OKLCHoklch(19.63% 0.096 296)
XYZxyz(1.2589, 0.6253, 4.0565)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B043A #233A04
analogous
#04083A #1B043A #36043A
triadic
#1B043A #3A1B04 #043A1B
tetradic
#1B043A #3A0408 #233A04 #043A36
square
#1B043A #3A0408 #233A04 #043A36
split-complementary
#1B043A #3A3604 #083A04
monochromatic
#0D021D #0D021D #1B043A #360873 #500CAD

Accessibility & contrast

On white

18.67
#1B043A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B043A
18.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B043A#FFFFFF#000000##FFFFFF
##1B043A1.0018.671.1318.67
#FFFFFF18.671.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00133B
Deuteranopia (green-blind)
#001239
Tritanopia (blue-blind)
#12131F
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1b043a;
/* rgb */ color: rgb(27, 4, 58);
/* oklch */ color: oklch(19.6% 0.096 296.0);
Tailwind
colors: {
  custom: {
    50: '#5b4771',
    500: '#1b043a',
    950: '#000000',
  },
}
SCSS
$custom: #1b043a;
$custom-light: #5b4771;
$custom-dark: #000000;
JSON
{
  "hex": "#1b043a",
  "rgb": {
    "r": 27,
    "g": 4,
    "b": 58
  },
  "hsl": {
    "h": 265.556,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.19634,
    "c": 0.09556,
    "h": 296
  },
  "luminance": 0.00625
}

Semantic roles & 50–950 ramp

primary
#1B043A
secondary
#547C1E
accent
#FD2BA4
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040007
muted
#79777A

Preview Lab

Preview with #1B043A

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

Preview Lab → · Contrast checker → · Palette generator →

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