#1A216C#1A216C

#1A216C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.8% C 0.128 H 271.7°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#1A216C
RGBrgb(26, 33, 108)
HSLhsl(235, 61%, 26%)
HSVhsv(235, 76%, 42%)
CMYKcmyk(75.9%, 69.4%, 0%, 57.6%)
CIE-LABlab(17.41, 25.07, -44.41)
CIE-LCHlch(17.41, 51.00, 299.44°)
OKLaboklab(29.82% 0.0039 -0.1284)
OKLCHoklch(29.82% 0.128 271.7)
XYZxyz(3.6757, 2.3897, 14.4520)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A216C #6C651A
analogous
#1A4A6C #1A216C #3C1A6C
triadic
#1A216C #6C1A21 #216C1A
tetradic
#1A216C #6C1A4A #6C651A #1A6C3C
square
#1A216C #6C1A4A #6C651A #1A6C3C
split-complementary
#1A216C #6C3C1A #4A6C1A
monochromatic
#060819 #0E123B #1A216C #26309D #3340CE

Accessibility & contrast

On white

14.21
#1A216C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1A216C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A216C
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A216C#FFFFFF#000000##FFFFFF
##1A216C1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#00276B
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1a216c;
/* rgb */ color: rgb(26, 33, 108);
/* oklch */ color: oklch(29.8% 0.128 271.7);
Tailwind
colors: {
  custom: {
    50: '#645c97',
    500: '#1a216c',
    950: '#000000',
  },
}
SCSS
$custom: #1a216c;
$custom-light: #645c97;
$custom-dark: #000000;
JSON
{
  "hex": "#1a216c",
  "rgb": {
    "r": 26,
    "g": 33,
    "b": 108
  },
  "hsl": {
    "h": 234.878,
    "s": 61.194,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29819,
    "c": 0.12844,
    "h": 271.7
  },
  "luminance": 0.0239
}

Semantic roles & 50–950 ramp

primary
#1A216C
secondary
#A19941
accent
#D743E4
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1A216C

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

Preview Lab → · Contrast checker → · Palette generator →

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