#1A204D#1A204D

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

Color values

HEX#1A204D
RGBrgb(26, 32, 77)
HSLhsl(233, 50%, 20%)
HSVhsv(233, 66%, 30%)
CMYKcmyk(66.2%, 58.4%, 0%, 69.8%)
CIE-LABlab(14.33, 13.48, -28.74)
CIE-LCHlch(14.33, 31.75, 295.13°)
OKLaboklab(26.67% 0.0054 -0.0824)
OKLCHoklch(26.67% 0.083 273.7)
XYZxyz(2.2816, 1.7883, 7.2447)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A204D #4D471A
analogous
#1A394D #1A204D #2D1A4D
triadic
#1A204D #4D1A20 #204D1A
tetradic
#1A204D #4D1A39 #4D471A #1A4D2D
square
#1A204D #4D1A39 #4D471A #1A4D2D
split-complementary
#1A204D #4D2D1A #394D1A
monochromatic
#080A17 #0B0D1F #1A204D #29337B #3946A9

Accessibility & contrast

On white

15.47
#1A204D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A204D
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A204D#FFFFFF#000000##FFFFFF
##1A204D1.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05274F
Deuteranopia (green-blind)
#00224C
Tritanopia (blue-blind)
#002A33
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1a204d;
/* rgb */ color: rgb(26, 32, 77);
/* oklch */ color: oklch(26.7% 0.083 273.7);
Tailwind
colors: {
  custom: {
    50: '#5d5b7f',
    500: '#1a204d',
    950: '#000000',
  },
}
SCSS
$custom: #1a204d;
$custom-light: #5d5b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#1a204d",
  "rgb": {
    "r": 26,
    "g": 32,
    "b": 77
  },
  "hsl": {
    "h": 232.941,
    "s": 49.515,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26671,
    "c": 0.08255,
    "h": 273.7
  },
  "luminance": 0.01788
}

Semantic roles & 50–950 ramp

primary
#1A204D
secondary
#837B40
accent
#C94FD9
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #1A204D

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

Preview Lab → · Contrast checker → · Palette generator →

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