#1B052E#1B052E

#1B052E is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.5% C 0.079 H 304.6°. Best body text is #FFFFFF at 18.96:1 contrast (WCAG AA passes).

Color values

HEX#1B052E
RGBrgb(27, 5, 46)
HSLhsl(272, 80%, 10%)
HSVhsv(272, 89%, 18%)
CMYKcmyk(41.3%, 89.1%, 0%, 82%)
CIE-LABlab(4.87, 19.59, -21.88)
CIE-LCHlch(4.87, 29.37, 311.85°)
OKLaboklab(18.52% 0.0447 -0.0649)
OKLCHoklch(18.52% 0.079 304.6)
XYZxyz(0.9993, 0.5388, 2.6356)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B052E #182E05
analogous
#06052E #1B052E #2E052D
triadic
#1B052E #2E1B05 #052E1B
tetradic
#1B052E #2E0605 #182E05 #052D2E
square
#1B052E #2E0605 #182E05 #052D2E
split-complementary
#1B052E #2D2E05 #052E06
monochromatic
#10031C #10031C #1B052E #3B0B65 #5C119C

Accessibility & contrast

On white

18.96
#1B052E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B052E
18.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B052E#FFFFFF#000000##FFFFFF
##1B052E1.0018.961.1118.96
#FFFFFF18.961.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102F
Deuteranopia (green-blind)
#00102D
Tritanopia (blue-blind)
#170F18
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1b052e;
/* rgb */ color: rgb(27, 5, 46);
/* oklch */ color: oklch(18.5% 0.079 304.6);
Tailwind
colors: {
  custom: {
    50: '#594867',
    500: '#1b052e',
    950: '#000000',
  },
}
SCSS
$custom: #1b052e;
$custom-light: #594867;
$custom-dark: #000000;
JSON
{
  "hex": "#1b052e",
  "rgb": {
    "r": 27,
    "g": 5,
    "b": 46
  },
  "hsl": {
    "h": 272.195,
    "s": 80.392,
    "l": 10
  },
  "oklch": {
    "l": 0.18516,
    "c": 0.0788,
    "h": 304.6
  },
  "luminance": 0.00539
}

Semantic roles & 50–950 ramp

primary
#1B052E
secondary
#44701F
accent
#F7318D
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #1B052E

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

Preview Lab → · Contrast checker → · Palette generator →

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