#1A1237#1A1237

#1A1237 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.7% C 0.069 H 289.3°. Best body text is #FFFFFF at 17.71:1 contrast (WCAG AA passes).

Color values

HEX#1A1237
RGBrgb(26, 18, 55)
HSLhsl(253, 51%, 14%)
HSVhsv(253, 67%, 22%)
CMYKcmyk(52.7%, 67.3%, 0%, 78.4%)
CIE-LABlab(8.38, 15.47, -22.88)
CIE-LCHlch(8.38, 27.62, 304.05°)
OKLaboklab(21.66% 0.0228 -0.0653)
OKLCHoklch(21.66% 0.069 289.3)
XYZxyz(1.3317, 0.9280, 3.7226)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1237 #2F3712
analogous
#121D37 #1A1237 #2D1237
triadic
#1A1237 #371A12 #12371A
tetradic
#1A1237 #37121D #2F3712 #12372D
square
#1A1237 #37121D #2F3712 #12372D
split-complementary
#1A1237 #372D12 #1D3712
monochromatic
#0B0817 #0B0817 #1A1237 #302165 #463093

Accessibility & contrast

On white

17.71
#1A1237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#1A1237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1237
17.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1237#FFFFFF#000000##FFFFFF
##1A12371.0017.711.1917.71
#FFFFFF17.711.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001938
Deuteranopia (green-blind)
#011736
Tritanopia (blue-blind)
#111A22
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1a1237;
/* rgb */ color: rgb(26, 18, 55);
/* oklch */ color: oklch(21.7% 0.069 289.3);
Tailwind
colors: {
  custom: {
    50: '#59506e',
    500: '#1a1237',
    950: '#000000',
  },
}
SCSS
$custom: #1a1237;
$custom-light: #59506e;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1237",
  "rgb": {
    "r": 26,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 252.973,
    "s": 50.685,
    "l": 14.314
  },
  "oklch": {
    "l": 0.21659,
    "c": 0.06914,
    "h": 289.3
  },
  "luminance": 0.00928
}

Semantic roles & 50–950 ramp

primary
#1A1237
secondary
#637035
accent
#DA4EBC
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040207
muted
#79787A

Preview Lab

Preview with #1A1237

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

Preview Lab → · Contrast checker → · Palette generator →

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