#1A287B#1A287B

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

Color values

HEX#1A287B
RGBrgb(26, 40, 123)
HSLhsl(231, 65%, 29%)
HSVhsv(231, 79%, 48%)
CMYKcmyk(78.9%, 67.5%, 0%, 51.8%)
CIE-LABlab(20.70, 26.10, -48.67)
CIE-LCHlch(20.70, 55.23, 298.20°)
OKLaboklab(32.67% -0.0019 -0.1408)
OKLCHoklch(32.67% 0.141 269.2)
XYZxyz(4.7587, 3.1667, 19.0955)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A287B #7B6D1A
analogous
#1A597B #1A287B #3D1A7B
triadic
#1A287B #7B1A28 #287B1A
tetradic
#1A287B #7B1A59 #7B6D1A #1A7B3D
square
#1A287B #7B1A59 #7B6D1A #1A7B3D
split-complementary
#1A287B #7B3D1A #597B1A
monochromatic
#050819 #0F1848 #1A287B #2538AE #3A50D5

Accessibility & contrast

On white

12.86
#1A287B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1A287B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A287B
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A287B#FFFFFF#000000##FFFFFF
##1A287B1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1a287b;
/* rgb */ color: rgb(26, 40, 123);
/* oklch */ color: oklch(32.7% 0.141 269.2);
Tailwind
colors: {
  custom: {
    50: '#6862a2',
    500: '#1a287b',
    950: '#000000',
  },
}
SCSS
$custom: #1a287b;
$custom-light: #6862a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1a287b",
  "rgb": {
    "r": 26,
    "g": 40,
    "b": 123
  },
  "hsl": {
    "h": 231.34,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32673,
    "c": 0.14081,
    "h": 269.2
  },
  "luminance": 0.03167
}

Semantic roles & 50–950 ramp

primary
#1A287B
secondary
#AF9F42
accent
#D040E8
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1A287B

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

Preview Lab → · Contrast checker → · Palette generator →

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