#1B062F#1B062F

#1B062F is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.8% C 0.078 H 303.2°. Best body text is #FFFFFF at 18.86:1 contrast (WCAG AA passes).

Color values

HEX#1B062F
RGBrgb(27, 6, 47)
HSLhsl(271, 77%, 10%)
HSVhsv(271, 87%, 18%)
CMYKcmyk(42.6%, 87.2%, 0%, 81.6%)
CIE-LABlab(5.14, 19.55, -22.20)
CIE-LCHlch(5.14, 29.58, 311.37°)
OKLaboklab(18.81% 0.0428 -0.0654)
OKLCHoklch(18.81% 0.078 303.2)
XYZxyz(1.0301, 0.5685, 2.7442)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B062F #1A2F06
analogous
#07062F #1B062F #2F062E
triadic
#1B062F #2F1B06 #062F1B
tetradic
#1B062F #2F0706 #1A2F06 #062E2F
square
#1B062F #2F0706 #1A2F06 #062E2F
split-complementary
#1B062F #2E2F06 #062F07
monochromatic
#10031B #10031B #1B062F #3A0D65 #59149C

Accessibility & contrast

On white

18.86
#1B062F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B062F
18.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B062F#FFFFFF#000000##FFFFFF
##1B062F1.0018.861.1118.86
#FFFFFF18.861.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001130
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#171019
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1b062f;
/* rgb */ color: rgb(27, 6, 47);
/* oklch */ color: oklch(18.8% 0.078 303.2);
Tailwind
colors: {
  custom: {
    50: '#594968',
    500: '#1b062f',
    950: '#000000',
  },
}
SCSS
$custom: #1b062f;
$custom-light: #594968;
$custom-dark: #000000;
JSON
{
  "hex": "#1b062f",
  "rgb": {
    "r": 27,
    "g": 6,
    "b": 47
  },
  "hsl": {
    "h": 270.732,
    "s": 77.358,
    "l": 10.392
  },
  "oklch": {
    "l": 0.18806,
    "c": 0.0781,
    "h": 303.2
  },
  "luminance": 0.00568
}

Semantic roles & 50–950 ramp

primary
#1B062F
secondary
#477021
accent
#F43492
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1B062F

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

Preview Lab → · Contrast checker → · Palette generator →

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