#1B043F#1B043F

#1B043F is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.2% C 0.102 H 292.9°. Best body text is #FFFFFF at 18.49:1 contrast (WCAG AA passes).

Color values

HEX#1B043F
RGBrgb(27, 4, 63)
HSLhsl(263, 88%, 13%)
HSVhsv(263, 94%, 25%)
CMYKcmyk(57.1%, 93.7%, 0%, 75.3%)
CIE-LABlab(6.13, 26.95, -32.30)
CIE-LCHlch(6.13, 42.06, 309.85°)
OKLaboklab(20.22% 0.0396 -0.0936)
OKLCHoklch(20.22% 0.102 292.9)
XYZxyz(1.3924, 0.6787, 4.7593)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B043F #283F04
analogous
#040A3F #1B043F #38043F
triadic
#1B043F #3F1B04 #043F1B
tetradic
#1B043F #3F040A #283F04 #043F38
square
#1B043F #3F040A #283F04 #043F38
split-complementary
#1B043F #3F3804 #0A3F04
monochromatic
#0C021D #0C021D #1B043F #340879 #4C0BB2

Accessibility & contrast

On white

18.49
#1B043F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#1B043F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B043F
18.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B043F#FFFFFF#000000##FFFFFF
##1B043F1.0018.491.1418.49
#FFFFFF18.491.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001441
Deuteranopia (green-blind)
#00123E
Tritanopia (blue-blind)
#0F1522
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1b043f;
/* rgb */ color: rgb(27, 4, 63);
/* oklch */ color: oklch(20.2% 0.102 292.9);
Tailwind
colors: {
  custom: {
    50: '#5d4775',
    500: '#1b043f',
    950: '#000000',
  },
}
SCSS
$custom: #1b043f;
$custom-light: #5d4775;
$custom-dark: #000000;
JSON
{
  "hex": "#1b043f",
  "rgb": {
    "r": 27,
    "g": 4,
    "b": 63
  },
  "hsl": {
    "h": 263.39,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.20219,
    "c": 0.10164,
    "h": 292.9
  },
  "luminance": 0.00679
}

Semantic roles & 50–950 ramp

primary
#1B043F
secondary
#5A801E
accent
#FE2AAB
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #1B043F

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

Preview Lab → · Contrast checker → · Palette generator →

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