#1B052D#1B052D

#1B052D is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.4% C 0.078 H 305.4°. Best body text is #FFFFFF at 18.98:1 contrast (WCAG AA passes).

Color values

HEX#1B052D
RGBrgb(27, 5, 45)
HSLhsl(273, 80%, 10%)
HSVhsv(273, 89%, 18%)
CMYKcmyk(40%, 88.9%, 0%, 82.4%)
CIE-LABlab(4.80, 19.18, -21.24)
CIE-LCHlch(4.80, 28.62, 312.08°)
OKLaboklab(18.42% 0.045 -0.0632)
OKLCHoklch(18.42% 0.078 305.4)
XYZxyz(0.9798, 0.5310, 2.5330)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B052D #172D05
analogous
#07052D #1B052D #2D052B
triadic
#1B052D #2D1B05 #052D1B
tetradic
#1B052D #2D0705 #172D05 #052B2D
square
#1B052D #2D0705 #172D05 #052B2D
split-complementary
#1B052D #2B2D05 #052D07
monochromatic
#11031C #11031C #1B052D #3C0B64 #5D119B

Accessibility & contrast

On white

18.98
#1B052D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B052D
18.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B052D#FFFFFF#000000##FFFFFF
##1B052D1.0018.981.1118.98
#FFFFFF18.981.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102E
Deuteranopia (green-blind)
#00102C
Tritanopia (blue-blind)
#180E18
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1b052d;
/* rgb */ color: rgb(27, 5, 45);
/* oklch */ color: oklch(18.4% 0.078 305.4);
Tailwind
colors: {
  custom: {
    50: '#594866',
    500: '#1b052d',
    950: '#000000',
  },
}
SCSS
$custom: #1b052d;
$custom-light: #594866;
$custom-dark: #000000;
JSON
{
  "hex": "#1b052d",
  "rgb": {
    "r": 27,
    "g": 5,
    "b": 45
  },
  "hsl": {
    "h": 273,
    "s": 80,
    "l": 9.804
  },
  "oklch": {
    "l": 0.18416,
    "c": 0.07754,
    "h": 305.4
  },
  "luminance": 0.00531
}

Semantic roles & 50–950 ramp

primary
#1B052D
secondary
#436F1F
accent
#F6318A
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #1B052D

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

Preview Lab → · Contrast checker → · Palette generator →

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