#1A217C#1A217C

#1A217C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.151 H 270.8°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#1A217C
RGBrgb(26, 33, 124)
HSLhsl(236, 65%, 29%)
HSVhsv(236, 79%, 49%)
CMYKcmyk(79%, 73.4%, 0%, 51.4%)
CIE-LABlab(19.06, 31.16, -52.00)
CIE-LCHlch(19.06, 60.62, 300.93°)
OKLaboklab(31.52% 0.0021 -0.1505)
OKLCHoklch(31.52% 0.151 270.8)
XYZxyz(4.6067, 2.7621, 19.3552)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A217C #7C751A
analogous
#1A527C #1A217C #441A7C
triadic
#1A217C #7C1A21 #217C1A
tetradic
#1A217C #7C1A52 #7C751A #1A7C44
square
#1A217C #7C1A52 #7C751A #1A7C44
split-complementary
#1A217C #7C441A #527C1A
monochromatic
#050719 #0F1449 #1A217C #252EAF #3B46D6

Accessibility & contrast

On white

13.53
#1A217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1A217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A217C
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A217C#FFFFFF#000000##FFFFFF
##1A217C1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1a217c;
/* rgb */ color: rgb(26, 33, 124);
/* oklch */ color: oklch(31.5% 0.151 270.8);
Tailwind
colors: {
  custom: {
    50: '#695da3',
    500: '#1a217c',
    950: '#000000',
  },
}
SCSS
$custom: #1a217c;
$custom-light: #695da3;
$custom-dark: #000000;
JSON
{
  "hex": "#1a217c",
  "rgb": {
    "r": 26,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 235.714,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31516,
    "c": 0.15054,
    "h": 270.8
  },
  "luminance": 0.02763
}

Semantic roles & 50–950 ramp

primary
#1A217C
secondary
#B0A842
accent
#DC40E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1A217C

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

Preview Lab → · Contrast checker → · Palette generator →

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