#1A287C#1A287C

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

Color values

HEX#1A287C
RGBrgb(26, 40, 124)
HSLhsl(231, 65%, 29%)
HSVhsv(231, 79%, 49%)
CMYKcmyk(79%, 67.7%, 0%, 51.4%)
CIE-LABlab(20.80, 26.49, -49.15)
CIE-LCHlch(20.80, 55.83, 298.32°)
OKLaboklab(32.77% -0.0019 -0.1422)
OKLCHoklch(32.77% 0.142 269.2)
XYZxyz(4.8216, 3.1919, 19.4269)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A287C #7C6E1A
analogous
#1A597C #1A287C #3D1A7C
triadic
#1A287C #7C1A28 #287C1A
tetradic
#1A287C #7C1A59 #7C6E1A #1A7C3D
square
#1A287C #7C1A59 #7C6E1A #1A7C3D
split-complementary
#1A287C #7C3D1A #597C1A
monochromatic
#050819 #0F1849 #1A287C #2538AF #3B51D6

Accessibility & contrast

On white

12.82
#1A287C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1A287C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A287C
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A287C#FFFFFF#000000##FFFFFF
##1A287C1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1a287c;
/* rgb */ color: rgb(26, 40, 124);
/* oklch */ color: oklch(32.8% 0.142 269.2);
Tailwind
colors: {
  custom: {
    50: '#6862a3',
    500: '#1a287c',
    950: '#000000',
  },
}
SCSS
$custom: #1a287c;
$custom-light: #6862a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1a287c",
  "rgb": {
    "r": 26,
    "g": 40,
    "b": 124
  },
  "hsl": {
    "h": 231.429,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32773,
    "c": 0.14221,
    "h": 269.2
  },
  "luminance": 0.03192
}

Semantic roles & 50–950 ramp

primary
#1A287C
secondary
#B0A042
accent
#D040E8
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1A287C

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

Preview Lab → · Contrast checker → · Palette generator →

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