#1A2181#1A2181

#1A2181 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.157 H 270.5°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#1A2181
RGBrgb(26, 33, 129)
HSLhsl(236, 66%, 30%)
HSVhsv(236, 80%, 51%)
CMYKcmyk(79.8%, 74.4%, 0%, 49.4%)
CIE-LABlab(19.61, 33.01, -54.28)
CIE-LCHlch(19.61, 63.53, 301.31°)
OKLaboklab(32.07% 0.0014 -0.1572)
OKLCHoklch(32.07% 0.157 270.5)
XYZxyz(4.9310, 2.8918, 21.0629)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2181 #817A1A
analogous
#1A5581 #1A2181 #461A81
triadic
#1A2181 #811A21 #21811A
tetradic
#1A2181 #811A55 #817A1A #1A8146
square
#1A2181 #811A55 #817A1A #1A8146
split-complementary
#1A2181 #81461A #55811A
monochromatic
#05071B #10144E #1A2181 #242EB4 #3D48D8

Accessibility & contrast

On white

13.30
#1A2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1A2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2181
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2181#FFFFFF#000000##FFFFFF
##1A21811.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1a2181;
/* rgb */ color: rgb(26, 33, 129);
/* oklch */ color: oklch(32.1% 0.157 270.5);
Tailwind
colors: {
  custom: {
    50: '#6a5da7',
    500: '#1a2181',
    950: '#000000',
  },
}
SCSS
$custom: #1a2181;
$custom-light: #6a5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2181",
  "rgb": {
    "r": 26,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 235.922,
    "s": 66.452,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32066,
    "c": 0.15719,
    "h": 270.5
  },
  "luminance": 0.02892
}

Semantic roles & 50–950 ramp

primary
#1A2181
secondary
#B5AD42
accent
#DE3EE9
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080410
muted
#7A797F

Preview Lab

Preview with #1A2181

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

Preview Lab → · Contrast checker → · Palette generator →

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