#1A228D#1A228D

#1A228D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.172 H 269.7°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#1A228D
RGBrgb(26, 34, 141)
HSLhsl(236, 69%, 33%)
HSVhsv(236, 82%, 55%)
CMYKcmyk(81.6%, 75.9%, 0%, 44.7%)
CIE-LABlab(21.16, 36.74, -59.26)
CIE-LCHlch(21.16, 69.72, 301.80°)
OKLaboklab(33.57% -0.0009 -0.1716)
OKLCHoklch(33.57% 0.172 269.7)
XYZxyz(5.8041, 3.2861, 25.5225)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A228D #8D851A
analogous
#1A5B8D #1A228D #4B1A8D
triadic
#1A228D #8D1A22 #228D1A
tetradic
#1A228D #8D1A5B #8D851A #1A8D4B
square
#1A228D #8D1A5B #8D851A #1A8D4B
split-complementary
#1A228D #8D4B1A #5B8D1A
monochromatic
#070926 #101659 #1A228D #242EC1 #454FDD

Accessibility & contrast

On white

12.67
#1A228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1A228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A228D
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A228D#FFFFFF#000000##FFFFFF
##1A228D1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1a228d;
/* rgb */ color: rgb(26, 34, 141);
/* oklch */ color: oklch(33.6% 0.172 269.7);
Tailwind
colors: {
  custom: {
    50: '#6d5eb0',
    500: '#1a228d',
    950: '#000000',
  },
}
SCSS
$custom: #1a228d;
$custom-light: #6d5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1a228d",
  "rgb": {
    "r": 26,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 235.826,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33567,
    "c": 0.17165,
    "h": 269.7
  },
  "luminance": 0.03287
}

Semantic roles & 50–950 ramp

primary
#1A228D
secondary
#BEB645
accent
#DF3CEC
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080411
muted
#7B7980

Preview Lab

Preview with #1A228D

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

Preview Lab → · Contrast checker → · Palette generator →

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