#1A204F#1A204F

#1A204F is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.8% C 0.086 H 273.7°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#1A204F
RGBrgb(26, 32, 79)
HSLhsl(233, 50%, 21%)
HSVhsv(233, 67%, 31%)
CMYKcmyk(67.1%, 59.5%, 0%, 69%)
CIE-LABlab(14.50, 14.28, -29.85)
CIE-LCHlch(14.50, 33.09, 295.57°)
OKLaboklab(26.84% 0.0055 -0.0856)
OKLCHoklch(26.84% 0.086 273.7)
XYZxyz(2.3533, 1.8170, 7.6223)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A204F #4F491A
analogous
#1A3A4F #1A204F #2E1A4F
triadic
#1A204F #4F1A20 #204F1A
tetradic
#1A204F #4F1A3A #4F491A #1A4F2E
square
#1A204F #4F1A3A #4F491A #1A4F2E
split-complementary
#1A204F #4F2E1A #3A4F1A
monochromatic
#080917 #0B0D21 #1A204F #29337D #3845AB

Accessibility & contrast

On white

15.40
#1A204F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#1A204F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A204F
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A204F#FFFFFF#000000##FFFFFF
##1A204F1.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022751
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#002B34
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1a204f;
/* rgb */ color: rgb(26, 32, 79);
/* oklch */ color: oklch(26.8% 0.086 273.7);
Tailwind
colors: {
  custom: {
    50: '#5d5b81',
    500: '#1a204f',
    950: '#000000',
  },
}
SCSS
$custom: #1a204f;
$custom-light: #5d5b81;
$custom-dark: #000000;
JSON
{
  "hex": "#1a204f",
  "rgb": {
    "r": 26,
    "g": 32,
    "b": 79
  },
  "hsl": {
    "h": 233.208,
    "s": 50.476,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26843,
    "c": 0.08581,
    "h": 273.7
  },
  "luminance": 0.01817
}

Semantic roles & 50–950 ramp

primary
#1A204F
secondary
#857D40
accent
#CA4EDA
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #1A204F

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

Preview Lab → · Contrast checker → · Palette generator →

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