#1A228B#1A228B

#1A228B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.169 H 269.8°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#1A228B
RGBrgb(26, 34, 139)
HSLhsl(236, 68%, 32%)
HSVhsv(236, 81%, 55%)
CMYKcmyk(81.3%, 75.5%, 0%, 45.5%)
CIE-LABlab(20.93, 36.03, -58.38)
CIE-LCHlch(20.93, 68.60, 301.68°)
OKLaboklab(33.34% -0.0006 -0.1691)
OKLCHoklch(33.34% 0.169 269.8)
XYZxyz(5.6566, 3.2271, 24.7459)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A228B #8B831A
analogous
#1A5B8B #1A228B #4A1A8B
triadic
#1A228B #8B1A22 #228B1A
tetradic
#1A228B #8B1A5B #8B831A #1A8B4A
square
#1A228B #8B1A5B #8B831A #1A8B4A
split-complementary
#1A228B #8B4A1A #5B8B1A
monochromatic
#070924 #101557 #1A228B #242FBF #434EDC

Accessibility & contrast

On white

12.76
#1A228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1A228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A228B
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A228B#FFFFFF#000000##FFFFFF
##1A228B1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1a228b;
/* rgb */ color: rgb(26, 34, 139);
/* oklch */ color: oklch(33.3% 0.169 269.8);
Tailwind
colors: {
  custom: {
    50: '#6d5eae',
    500: '#1a228b',
    950: '#000000',
  },
}
SCSS
$custom: #1a228b;
$custom-light: #6d5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#1a228b",
  "rgb": {
    "r": 26,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 235.752,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33342,
    "c": 0.1691,
    "h": 269.8
  },
  "luminance": 0.03228
}

Semantic roles & 50–950 ramp

primary
#1A228B
secondary
#BDB444
accent
#DF3CEB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #1A228B

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

Preview Lab → · Contrast checker → · Palette generator →

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