#1A217A#1A217A

#1A217A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.148 H 270.9°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#1A217A
RGBrgb(26, 33, 122)
HSLhsl(236, 65%, 29%)
HSVhsv(236, 79%, 48%)
CMYKcmyk(78.7%, 73%, 0%, 52.2%)
CIE-LABlab(18.85, 30.41, -51.07)
CIE-LCHlch(18.85, 59.44, 300.77°)
OKLaboklab(31.3% 0.0023 -0.1478)
OKLCHoklch(31.3% 0.148 270.9)
XYZxyz(4.4815, 2.7120, 18.6959)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A217A #7A731A
analogous
#1A517A #1A217A #431A7A
triadic
#1A217A #7A1A21 #217A1A
tetradic
#1A217A #7A1A51 #7A731A #1A7A43
square
#1A217A #7A1A51 #7A731A #1A7A43
split-complementary
#1A217A #7A431A #517A1A
monochromatic
#050719 #0F1348 #1A217A #252FAC #3945D5

Accessibility & contrast

On white

13.62
#1A217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1A217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A217A
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A217A#FFFFFF#000000##FFFFFF
##1A217A1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002978
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1a217a;
/* rgb */ color: rgb(26, 33, 122);
/* oklch */ color: oklch(31.3% 0.148 270.9);
Tailwind
colors: {
  custom: {
    50: '#685da1',
    500: '#1a217a',
    950: '#000000',
  },
}
SCSS
$custom: #1a217a;
$custom-light: #685da1;
$custom-dark: #000000;
JSON
{
  "hex": "#1a217a",
  "rgb": {
    "r": 26,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 235.625,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31299,
    "c": 0.14786,
    "h": 270.9
  },
  "luminance": 0.02712
}

Semantic roles & 50–950 ramp

primary
#1A217A
secondary
#AEA641
accent
#DC40E8
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1A217A

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

Preview Lab → · Contrast checker → · Palette generator →

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