#1812A1#1812A1

#1812A1 is a dark, highly saturated blue. Relative luminance 0.032; OKLCH L 34.0% C 0.209 H 269.0°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#1812A1
RGBrgb(24, 18, 161)
HSLhsl(243, 80%, 35%)
HSVhsv(243, 89%, 63%)
CMYKcmyk(85.1%, 88.8%, 0%, 36.9%)
CIE-LABlab(20.82, 51.09, -72.14)
CIE-LCHlch(20.82, 88.40, 305.31°)
OKLaboklab(34.02% -0.0036 -0.2087)
OKLCHoklch(34.02% 0.209 269)
XYZxyz(7.0238, 3.1992, 33.9586)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1812A1 #9BA112
analogous
#1254A1 #1812A1 #5F12A1
triadic
#1812A1 #A11812 #12A118
tetradic
#1812A1 #A11254 #9BA112 #12A15F
square
#1812A1 #A11254 #9BA112 #12A15F
split-complementary
#1812A1 #A15F12 #54A112
monochromatic
#080633 #100C6A #1812A1 #2018D8 #4A43EA

Accessibility & contrast

On white

12.80
#1812A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1812A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1812A1
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1812A1#FFFFFF#000000##FFFFFF
##1812A11.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0039A5
Deuteranopia (green-blind)
#002A9F
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1812a1;
/* rgb */ color: rgb(24, 18, 161);
/* oklch */ color: oklch(34.0% 0.209 269.0);
Tailwind
colors: {
  custom: {
    50: '#7457be',
    500: '#1812a1',
    950: '#000000',
  },
}
SCSS
$custom: #1812a1;
$custom-light: #7457be;
$custom-dark: #000000;
JSON
{
  "hex": "#1812a1",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 161
  },
  "hsl": {
    "h": 242.517,
    "s": 79.888,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34021,
    "c": 0.20872,
    "h": 269
  },
  "luminance": 0.032
}

Semantic roles & 50–950 ramp

primary
#1812A1
secondary
#C5CA45
accent
#F631EE
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0312
muted
#7C7881

Preview Lab

Preview with #1812A1

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

Preview Lab → · Contrast checker → · Palette generator →

#1812A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva