#1A287F#1A287F

#1A287F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.146 H 269.2°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#1A287F
RGBrgb(26, 40, 127)
HSLhsl(232, 66%, 30%)
HSVhsv(232, 80%, 50%)
CMYKcmyk(79.5%, 68.5%, 0%, 50.2%)
CIE-LABlab(21.09, 27.65, -50.57)
CIE-LCHlch(21.09, 57.64, 298.67°)
OKLaboklab(33.08% -0.0021 -0.1463)
OKLCHoklch(33.08% 0.146 269.2)
XYZxyz(5.0142, 3.2689, 20.4413)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A287F #7F711A
analogous
#1A5B7F #1A287F #3E1A7F
triadic
#1A287F #7F1A28 #287F1A
tetradic
#1A287F #7F1A5B #7F711A #1A7F3E
square
#1A287F #7F1A5B #7F711A #1A7F3E
split-complementary
#1A287F #7F3E1A #5B7F1A
monochromatic
#050819 #10184C #1A287F #2438B2 #3C52D7

Accessibility & contrast

On white

12.70
#1A287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A287F
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A287F#FFFFFF#000000##FFFFFF
##1A287F1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1a287f;
/* rgb */ color: rgb(26, 40, 127);
/* oklch */ color: oklch(33.1% 0.146 269.2);
Tailwind
colors: {
  custom: {
    50: '#6962a5',
    500: '#1a287f',
    950: '#000000',
  },
}
SCSS
$custom: #1a287f;
$custom-light: #6962a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1a287f",
  "rgb": {
    "r": 26,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 231.683,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.33078,
    "c": 0.14637,
    "h": 269.2
  },
  "luminance": 0.0327
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1A287F

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

Preview Lab → · Contrast checker → · Palette generator →

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