#1A2E87#1A2E87

#1A2E87 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.150 H 267.7°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#1A2E87
RGBrgb(26, 46, 135)
HSLhsl(229, 68%, 32%)
HSVhsv(229, 81%, 53%)
CMYKcmyk(80.7%, 65.9%, 0%, 47.1%)
CIE-LABlab(23.41, 26.68, -51.79)
CIE-LCHlch(23.41, 58.26, 297.25°)
OKLaboklab(35.02% -0.0061 -0.1499)
OKLCHoklch(35.02% 0.15 267.7)
XYZxyz(5.7746, 3.9222, 23.3697)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2E87 #87731A
analogous
#1A6587 #1A2E87 #3D1A87
triadic
#1A2E87 #871A2E #2E871A
tetradic
#1A2E87 #871A65 #87731A #1A873D
square
#1A2E87 #871A65 #87731A #1A873D
split-complementary
#1A2E87 #873D1A #65871A
monochromatic
#060B20 #101D54 #1A2E87 #243FBA #415DDA

Accessibility & contrast

On white

11.77
#1A2E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1A2E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2E87
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2E87#FFFFFF#000000##FFFFFF
##1A2E871.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1a2e87;
/* rgb */ color: rgb(26, 46, 135);
/* oklch */ color: oklch(35.0% 0.150 267.7);
Tailwind
colors: {
  custom: {
    50: '#6a66ab',
    500: '#1a2e87',
    950: '#000000',
  },
}
SCSS
$custom: #1a2e87;
$custom-light: #6a66ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2e87",
  "rgb": {
    "r": 26,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 228.991,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35017,
    "c": 0.15,
    "h": 267.7
  },
  "luminance": 0.03923
}

Semantic roles & 50–950 ramp

primary
#1A2E87
secondary
#BAA442
accent
#CB3DEB
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1A2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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