#1B052F#1B052F

#1B052F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.6% C 0.080 H 303.7°. Best body text is #FFFFFF at 18.93:1 contrast (WCAG AA passes).

Color values

HEX#1B052F
RGBrgb(27, 5, 47)
HSLhsl(271, 81%, 10%)
HSVhsv(271, 89%, 18%)
CMYKcmyk(42.6%, 89.4%, 0%, 81.6%)
CIE-LABlab(4.94, 20.00, -22.51)
CIE-LCHlch(4.94, 30.11, 311.62°)
OKLaboklab(18.62% 0.0444 -0.0666)
OKLCHoklch(18.62% 0.08 303.7)
XYZxyz(1.0192, 0.5468, 2.7406)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B052F #192F05
analogous
#06052F #1B052F #2F052E
triadic
#1B052F #2F1B05 #052F1B
tetradic
#1B052F #2F0605 #192F05 #052E2F
square
#1B052F #2F0605 #192F05 #052E2F
split-complementary
#1B052F #2E2F05 #052F06
monochromatic
#10031C #10031C #1B052F #3B0B66 #5B119E

Accessibility & contrast

On white

18.93
#1B052F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B052F
18.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B052F#FFFFFF#000000##FFFFFF
##1B052F1.0018.931.1118.93
#FFFFFF18.931.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001030
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#170F19
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1b052f;
/* rgb */ color: rgb(27, 5, 47);
/* oklch */ color: oklch(18.6% 0.080 303.7);
Tailwind
colors: {
  custom: {
    50: '#594868',
    500: '#1b052f',
    950: '#000000',
  },
}
SCSS
$custom: #1b052f;
$custom-light: #594868;
$custom-dark: #000000;
JSON
{
  "hex": "#1b052f",
  "rgb": {
    "r": 27,
    "g": 5,
    "b": 47
  },
  "hsl": {
    "h": 271.429,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.18618,
    "c": 0.08007,
    "h": 303.7
  },
  "luminance": 0.00547
}

Semantic roles & 50–950 ramp

primary
#1B052F
secondary
#46711F
accent
#F7318F
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1B052F

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

Preview Lab → · Contrast checker → · Palette generator →

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