#1A217B#1A217B

#1A217B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.149 H 270.8°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#1A217B
RGBrgb(26, 33, 123)
HSLhsl(236, 65%, 29%)
HSVhsv(236, 79%, 48%)
CMYKcmyk(78.9%, 73.2%, 0%, 51.8%)
CIE-LABlab(18.96, 30.79, -51.54)
CIE-LCHlch(18.96, 60.03, 300.85°)
OKLaboklab(31.41% 0.0022 -0.1492)
OKLCHoklch(31.41% 0.149 270.8)
XYZxyz(4.5438, 2.7369, 19.0239)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A217B #7B741A
analogous
#1A527B #1A217B #441A7B
triadic
#1A217B #7B1A21 #217B1A
tetradic
#1A217B #7B1A52 #7B741A #1A7B44
square
#1A217B #7B1A52 #7B741A #1A7B44
split-complementary
#1A217B #7B441A #527B1A
monochromatic
#050719 #0F1348 #1A217B #252FAE #3A45D5

Accessibility & contrast

On white

13.57
#1A217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A217B
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A217B#FFFFFF#000000##FFFFFF
##1A217B1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1a217b;
/* rgb */ color: rgb(26, 33, 123);
/* oklch */ color: oklch(31.4% 0.149 270.8);
Tailwind
colors: {
  custom: {
    50: '#685da2',
    500: '#1a217b',
    950: '#000000',
  },
}
SCSS
$custom: #1a217b;
$custom-light: #685da2;
$custom-dark: #000000;
JSON
{
  "hex": "#1a217b",
  "rgb": {
    "r": 26,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 235.67,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31407,
    "c": 0.14921,
    "h": 270.8
  },
  "luminance": 0.02737
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1A217B

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

Preview Lab → · Contrast checker → · Palette generator →

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