#1A022C#1A022C

#1A022C is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.5% C 0.083 H 306.4°. Best body text is #FFFFFF at 19.28:1 contrast (WCAG AA passes).

Color values

HEX#1A022C
RGBrgb(26, 2, 44)
HSLhsl(274, 91%, 9%)
HSVhsv(274, 95%, 17%)
CMYKcmyk(40.9%, 95.5%, 0%, 82.7%)
CIE-LABlab(4.02, 19.58, -21.72)
CIE-LCHlch(4.02, 29.24, 312.03°)
OKLaboklab(17.54% 0.0491 -0.0665)
OKLCHoklch(17.54% 0.083 306.4)
XYZxyz(0.9022, 0.4449, 2.4207)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A022C #142C02
analogous
#05022C #1A022C #2C0229
triadic
#1A022C #2C1A02 #022C1A
tetradic
#1A022C #2C0502 #142C02 #02292C
square
#1A022C #2C0502 #142C02 #02292C
split-complementary
#1A022C #292C02 #022C05
monochromatic
#11011D #11011D #1A022C #3D0567 #5F07A1

Accessibility & contrast

On white

19.28
#1A022C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#1A022C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A022C
19.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A022C#FFFFFF#000000##FFFFFF
##1A022C1.0019.281.0919.28
#FFFFFF19.281.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2D
Deuteranopia (green-blind)
#000E2B
Tritanopia (blue-blind)
#170B16
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #1a022c;
/* rgb */ color: rgb(26, 2, 44);
/* oklch */ color: oklch(17.5% 0.083 306.4);
Tailwind
colors: {
  custom: {
    50: '#574765',
    500: '#1a022c',
    950: '#000000',
  },
}
SCSS
$custom: #1a022c;
$custom-light: #574765;
$custom-dark: #000000;
JSON
{
  "hex": "#1a022c",
  "rgb": {
    "r": 26,
    "g": 2,
    "b": 44
  },
  "hsl": {
    "h": 274.286,
    "s": 91.304,
    "l": 9.02
  },
  "oklch": {
    "l": 0.17537,
    "c": 0.0827,
    "h": 306.4
  },
  "luminance": 0.00445
}

Semantic roles & 50–950 ramp

primary
#1A022C
secondary
#3F7119
accent
#FF2985
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#030005
muted
#78777A

Preview Lab

Preview with #1A022C

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

Preview Lab → · Contrast checker → · Palette generator →

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