#1A218F#1A218F

#1A218F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.175 H 269.7°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#1A218F
RGBrgb(26, 33, 143)
HSLhsl(236, 69%, 33%)
HSVhsv(236, 82%, 56%)
CMYKcmyk(81.8%, 76.9%, 0%, 43.9%)
CIE-LABlab(21.17, 38.05, -60.48)
CIE-LCHlch(21.17, 71.45, 302.18°)
OKLaboklab(33.64% -0.0008 -0.1752)
OKLCHoklch(33.64% 0.175 269.7)
XYZxyz(5.9261, 3.2898, 26.3039)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A218F #8F881A
analogous
#1A5B8F #1A218F #4D1A8F
triadic
#1A218F #8F1A21 #218F1A
tetradic
#1A218F #8F1A5B #8F881A #1A8F4D
square
#1A218F #8F1A5B #8F881A #1A8F4D
split-complementary
#1A218F #8F4D1A #5B8F1A
monochromatic
#070927 #11155B #1A218F #232DC3 #464FDD

Accessibility & contrast

On white

12.67
#1A218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1A218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A218F
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A218F#FFFFFF#000000##FFFFFF
##1A218F1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1a218f;
/* rgb */ color: rgb(26, 33, 143);
/* oklch */ color: oklch(33.6% 0.175 269.7);
Tailwind
colors: {
  custom: {
    50: '#6e5eb1',
    500: '#1a218f',
    950: '#000000',
  },
}
SCSS
$custom: #1a218f;
$custom-light: #6e5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#1a218f",
  "rgb": {
    "r": 26,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 236.41,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33644,
    "c": 0.17519,
    "h": 269.7
  },
  "luminance": 0.0329
}

Semantic roles & 50–950 ramp

primary
#1A218F
secondary
#BFB846
accent
#E23CEC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1A218F

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

Preview Lab → · Contrast checker → · Palette generator →

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