#1A2C87#1A2C87

#1A2C87 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.152 H 268.1°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#1A2C87
RGBrgb(26, 44, 135)
HSLhsl(230, 68%, 32%)
HSVhsv(230, 81%, 53%)
CMYKcmyk(80.7%, 67.4%, 0%, 47.1%)
CIE-LABlab(22.89, 28.04, -52.64)
CIE-LCHlch(22.89, 59.65, 298.04°)
OKLaboklab(34.64% -0.005 -0.1524)
OKLCHoklch(34.64% 0.152 268.1)
XYZxyz(5.6983, 3.7696, 23.3443)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2C87 #87751A
analogous
#1A6387 #1A2C87 #3F1A87
triadic
#1A2C87 #871A2C #2C871A
tetradic
#1A2C87 #871A63 #87751A #1A873F
square
#1A2C87 #871A63 #87751A #1A873F
split-complementary
#1A2C87 #873F1A #63871A
monochromatic
#060B20 #101B54 #1A2C87 #243DBA #415ADA

Accessibility & contrast

On white

11.97
#1A2C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1A2C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2C87
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2C87#FFFFFF#000000##FFFFFF
##1A2C871.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1a2c87;
/* rgb */ color: rgb(26, 44, 135);
/* oklch */ color: oklch(34.6% 0.152 268.1);
Tailwind
colors: {
  custom: {
    50: '#6b65ab',
    500: '#1a2c87',
    950: '#000000',
  },
}
SCSS
$custom: #1a2c87;
$custom-light: #6b65ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2c87",
  "rgb": {
    "r": 26,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 230.092,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34637,
    "c": 0.15246,
    "h": 268.1
  },
  "luminance": 0.0377
}

Semantic roles & 50–950 ramp

primary
#1A2C87
secondary
#BAA742
accent
#CE3DEB
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F

Preview Lab

Preview with #1A2C87

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

Preview Lab → · Contrast checker → · Palette generator →

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