#1A227B#1A227B

#1A227B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.148 H 270.6°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#1A227B
RGBrgb(26, 34, 123)
HSLhsl(235, 65%, 29%)
HSVhsv(235, 79%, 48%)
CMYKcmyk(78.9%, 72.4%, 0%, 51.8%)
CIE-LABlab(19.20, 30.13, -51.14)
CIE-LCHlch(19.20, 59.36, 300.51°)
OKLaboklab(31.58% 0.0017 -0.148)
OKLCHoklch(31.58% 0.148 270.6)
XYZxyz(4.5720, 2.7932, 19.0332)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A227B #7B731A
analogous
#1A537B #1A227B #431A7B
triadic
#1A227B #7B1A22 #227B1A
tetradic
#1A227B #7B1A53 #7B731A #1A7B43
square
#1A227B #7B1A53 #7B731A #1A7B43
split-complementary
#1A227B #7B431A #537B1A
monochromatic
#050719 #0F1448 #1A227B #2530AE #3A47D5

Accessibility & contrast

On white

13.47
#1A227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1A227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A227B
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A227B#FFFFFF#000000##FFFFFF
##1A227B1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003B4B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1a227b;
/* rgb */ color: rgb(26, 34, 123);
/* oklch */ color: oklch(31.6% 0.148 270.6);
Tailwind
colors: {
  custom: {
    50: '#685da2',
    500: '#1a227b',
    950: '#000000',
  },
}
SCSS
$custom: #1a227b;
$custom-light: #685da2;
$custom-dark: #000000;
JSON
{
  "hex": "#1a227b",
  "rgb": {
    "r": 26,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 235.052,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31579,
    "c": 0.14805,
    "h": 270.6
  },
  "luminance": 0.02794
}

Semantic roles & 50–950 ramp

primary
#1A227B
secondary
#AFA642
accent
#DA40E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1A227B

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

Preview Lab → · Contrast checker → · Palette generator →

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