#1B0335#1B0335

#1B0335 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.9% C 0.091 H 299.9°. Best body text is #FFFFFF at 18.90:1 contrast (WCAG AA passes).

Color values

HEX#1B0335
RGBrgb(27, 3, 53)
HSLhsl(269, 89%, 11%)
HSVhsv(269, 94%, 21%)
CMYKcmyk(49.1%, 94.3%, 0%, 79.2%)
CIE-LABlab(5.02, 23.43, -26.84)
CIE-LCHlch(5.02, 35.63, 311.12°)
OKLaboklab(18.89% 0.0454 -0.0792)
OKLCHoklch(18.89% 0.091 299.9)
XYZxyz(1.1270, 0.5552, 3.4153)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0335 #1D3503
analogous
#030435 #1B0335 #340335
triadic
#1B0335 #351B03 #03351B
tetradic
#1B0335 #350304 #1D3503 #033534
square
#1B0335 #350304 #1D3503 #033534
split-complementary
#1B0335 #353403 #043503
monochromatic
#0F021D #0F021D #1B0335 #39066F #560AA9

Accessibility & contrast

On white

18.90
#1B0335 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B0335
18.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0335#FFFFFF#000000##FFFFFF
##1B03351.0018.901.1118.90
#FFFFFF18.901.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001136
Deuteranopia (green-blind)
#001034
Tritanopia (blue-blind)
#15101C
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1b0335;
/* rgb */ color: rgb(27, 3, 53);
/* oklch */ color: oklch(18.9% 0.091 299.9);
Tailwind
colors: {
  custom: {
    50: '#5a476d',
    500: '#1b0335',
    950: '#000000',
  },
}
SCSS
$custom: #1b0335;
$custom-light: #5a476d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0335",
  "rgb": {
    "r": 27,
    "g": 3,
    "b": 53
  },
  "hsl": {
    "h": 268.8,
    "s": 89.286,
    "l": 10.98
  },
  "oklch": {
    "l": 0.18888,
    "c": 0.09127,
    "h": 299.9
  },
  "luminance": 0.00555
}

Semantic roles & 50–950 ramp

primary
#1B0335
secondary
#4C781C
accent
#FF2998
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040007
muted
#79777A

Preview Lab

Preview with #1B0335

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

Preview Lab → · Contrast checker → · Palette generator →

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