#1A287E#1A287E

#1A287E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.145 H 269.2°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#1A287E
RGBrgb(26, 40, 126)
HSLhsl(232, 66%, 30%)
HSVhsv(232, 79%, 49%)
CMYKcmyk(79.4%, 68.3%, 0%, 50.6%)
CIE-LABlab(20.99, 27.27, -50.10)
CIE-LCHlch(20.99, 57.04, 298.56°)
OKLaboklab(32.98% -0.0021 -0.145)
OKLCHoklch(32.98% 0.145 269.2)
XYZxyz(4.9494, 3.2430, 20.0997)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A287E #7E701A
analogous
#1A5A7E #1A287E #3E1A7E
triadic
#1A287E #7E1A28 #287E1A
tetradic
#1A287E #7E1A5A #7E701A #1A7E3E
square
#1A287E #7E1A5A #7E701A #1A7E3E
split-complementary
#1A287E #7E3E1A #5A7E1A
monochromatic
#050819 #10184B #1A287E #2438B1 #3C51D7

Accessibility & contrast

On white

12.74
#1A287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1A287E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A287E
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A287E#FFFFFF#000000##FFFFFF
##1A287E1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1a287e;
/* rgb */ color: rgb(26, 40, 126);
/* oklch */ color: oklch(33.0% 0.145 269.2);
Tailwind
colors: {
  custom: {
    50: '#6862a4',
    500: '#1a287e',
    950: '#000000',
  },
}
SCSS
$custom: #1a287e;
$custom-light: #6862a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1a287e",
  "rgb": {
    "r": 26,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 231.6,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32976,
    "c": 0.14498,
    "h": 269.2
  },
  "luminance": 0.03244
}

Semantic roles & 50–950 ramp

primary
#1A287E
secondary
#B2A242
accent
#D13FE9
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1A287E

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

Preview Lab → · Contrast checker → · Palette generator →

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