#1A2C81#1A2C81

#1A2C81 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.144 H 268.1°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#1A2C81
RGBrgb(26, 44, 129)
HSLhsl(230, 66%, 30%)
HSVhsv(230, 80%, 51%)
CMYKcmyk(79.8%, 65.9%, 0%, 49.4%)
CIE-LABlab(22.32, 25.70, -49.81)
CIE-LCHlch(22.32, 56.05, 297.29°)
OKLaboklab(34.04% -0.0047 -0.1441)
OKLCHoklch(34.04% 0.144 268.1)
XYZxyz(5.2878, 3.6054, 21.1818)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2C81 #816F1A
analogous
#1A5F81 #1A2C81 #3C1A81
triadic
#1A2C81 #811A2C #2C811A
tetradic
#1A2C81 #811A5F #816F1A #1A813C
square
#1A2C81 #811A5F #816F1A #1A813C
split-complementary
#1A2C81 #813C1A #5F811A
monochromatic
#05091B #101B4E #1A2C81 #243DB4 #3D58D8

Accessibility & contrast

On white

12.20
#1A2C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1A2C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2C81
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2C81#FFFFFF#000000##FFFFFF
##1A2C811.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1a2c81;
/* rgb */ color: rgb(26, 44, 129);
/* oklch */ color: oklch(34.0% 0.144 268.1);
Tailwind
colors: {
  custom: {
    50: '#6965a6',
    500: '#1a2c81',
    950: '#000000',
  },
}
SCSS
$custom: #1a2c81;
$custom-light: #6965a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2c81",
  "rgb": {
    "r": 26,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 229.515,
    "s": 66.452,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3404,
    "c": 0.14419,
    "h": 268.1
  },
  "luminance": 0.03606
}

Semantic roles & 50–950 ramp

primary
#1A2C81
secondary
#B5A142
accent
#CC3EE9
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1A2C81

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

Preview Lab → · Contrast checker → · Palette generator →

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