#1A285E#1A285E

#1A285E is a dark, moderate blue. Relative luminance 0.025; OKLCH L 30.0% C 0.098 H 268.8°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#1A285E
RGBrgb(26, 40, 94)
HSLhsl(228, 57%, 24%)
HSVhsv(228, 72%, 37%)
CMYKcmyk(72.3%, 57.4%, 0%, 63.1%)
CIE-LABlab(18.12, 14.45, -34.06)
CIE-LCHlch(18.12, 37.00, 292.99°)
OKLaboklab(29.95% -0.002 -0.0979)
OKLCHoklch(29.95% 0.098 268.8)
XYZxyz(3.2045, 2.5450, 10.9099)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A285E #5E501A
analogous
#1A4A5E #1A285E #2E1A5E
triadic
#1A285E #5E1A28 #285E1A
tetradic
#1A285E #5E1A4A #5E501A #1A5E2E
square
#1A285E #5E1A4A #5E501A #1A5E2E
split-complementary
#1A285E #5E2E1A #4A5E1A
monochromatic
#070A18 #0D142E #1A285E #273C8E #3551BE

Accessibility & contrast

On white

13.92
#1A285E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1A285E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A285E
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A285E#FFFFFF#000000##FFFFFF
##1A285E1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032F60
Deuteranopia (green-blind)
#00295D
Tritanopia (blue-blind)
#00353E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1a285e;
/* rgb */ color: rgb(26, 40, 94);
/* oklch */ color: oklch(30.0% 0.098 268.8);
Tailwind
colors: {
  custom: {
    50: '#60618c',
    500: '#1a285e',
    950: '#000000',
  },
}
SCSS
$custom: #1a285e;
$custom-light: #60618c;
$custom-dark: #000000;
JSON
{
  "hex": "#1a285e",
  "rgb": {
    "r": 26,
    "g": 40,
    "b": 94
  },
  "hsl": {
    "h": 227.647,
    "s": 56.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29954,
    "c": 0.09794,
    "h": 268.8
  },
  "luminance": 0.02545
}

Semantic roles & 50–950 ramp

primary
#1A285E
secondary
#948340
accent
#C148E0
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #1A285E

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

Preview Lab → · Contrast checker → · Palette generator →

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