#1B033A#1B033A

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

Color values

HEX#1B033A
RGBrgb(27, 3, 58)
HSLhsl(266, 90%, 12%)
HSVhsv(266, 95%, 23%)
CMYKcmyk(53.4%, 94.8%, 0%, 77.3%)
CIE-LABlab(5.45, 25.49, -29.79)
CIE-LCHlch(5.45, 39.21, 310.56°)
OKLaboklab(19.46% 0.0432 -0.0871)
OKLCHoklch(19.46% 0.097 296.4)
XYZxyz(1.2481, 0.6036, 4.0529)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B033A #223A03
analogous
#03063A #1B033A #37033A
triadic
#1B033A #3A1B03 #033A1B
tetradic
#1B033A #3A0306 #223A03 #033A37
square
#1B033A #3A0306 #223A03 #033A37
split-complementary
#1B033A #3A3703 #063A03
monochromatic
#0E021D #0E021D #1B033A #360674 #5109AE

Accessibility & contrast

On white

18.74
#1B033A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#1B033A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B033A
18.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B033A#FFFFFF#000000##FFFFFF
##1B033A1.0018.741.1218.74
#FFFFFF18.741.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00123B
Deuteranopia (green-blind)
#001139
Tritanopia (blue-blind)
#12121F
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1b033a;
/* rgb */ color: rgb(27, 3, 58);
/* oklch */ color: oklch(19.5% 0.097 296.4);
Tailwind
colors: {
  custom: {
    50: '#5b4771',
    500: '#1b033a',
    950: '#000000',
  },
}
SCSS
$custom: #1b033a;
$custom-light: #5b4771;
$custom-dark: #000000;
JSON
{
  "hex": "#1b033a",
  "rgb": {
    "r": 27,
    "g": 3,
    "b": 58
  },
  "hsl": {
    "h": 266.182,
    "s": 90.164,
    "l": 11.961
  },
  "oklch": {
    "l": 0.19462,
    "c": 0.0972,
    "h": 296.4
  },
  "luminance": 0.00604
}

Semantic roles & 50–950 ramp

primary
#1B033A
secondary
#537D1C
accent
#FF29A2
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040007
muted
#79777A

Preview Lab

Preview with #1B033A

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

Preview Lab → · Contrast checker → · Palette generator →

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