#1A228E#1A228E

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

Color values

HEX#1A228E
RGBrgb(26, 34, 142)
HSLhsl(236, 69%, 33%)
HSVhsv(236, 82%, 56%)
CMYKcmyk(81.7%, 76.1%, 0%, 44.3%)
CIE-LABlab(21.27, 37.10, -59.69)
CIE-LCHlch(21.27, 70.28, 301.86°)
OKLaboklab(33.68% -0.001 -0.1729)
OKLCHoklch(33.68% 0.173 269.7)
XYZxyz(5.8788, 3.3160, 25.9162)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A228E #8E861A
analogous
#1A5C8E #1A228E #4C1A8E
triadic
#1A228E #8E1A22 #228E1A
tetradic
#1A228E #8E1A5C #8E861A #1A8E4C
square
#1A228E #8E1A5C #8E861A #1A8E4C
split-complementary
#1A228E #8E4C1A #5C8E1A
monochromatic
#070927 #11165A #1A228E #232EC2 #4550DD

Accessibility & contrast

On white

12.62
#1A228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A228E
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A228E#FFFFFF#000000##FFFFFF
##1A228E1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1a228e;
/* rgb */ color: rgb(26, 34, 142);
/* oklch */ color: oklch(33.7% 0.173 269.7);
Tailwind
colors: {
  custom: {
    50: '#6d5eb0',
    500: '#1a228e',
    950: '#000000',
  },
}
SCSS
$custom: #1a228e;
$custom-light: #6d5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1a228e",
  "rgb": {
    "r": 26,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 235.862,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33681,
    "c": 0.17292,
    "h": 269.7
  },
  "luminance": 0.03317
}

Semantic roles & 50–950 ramp

primary
#1A228E
secondary
#BEB645
accent
#E03CEC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980

Preview Lab

Preview with #1A228E

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

Preview Lab → · Contrast checker → · Palette generator →

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