#1A227E#1A227E

#1A227E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.152 H 270.5°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#1A227E
RGBrgb(26, 34, 126)
HSLhsl(235, 66%, 30%)
HSVhsv(235, 79%, 49%)
CMYKcmyk(79.4%, 73%, 0%, 50.6%)
CIE-LABlab(19.51, 31.26, -52.53)
CIE-LCHlch(19.51, 61.13, 300.76°)
OKLaboklab(31.9% 0.0013 -0.1521)
OKLCHoklch(31.9% 0.152 270.5)
XYZxyz(4.7626, 2.8695, 20.0375)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A227E #7E761A
analogous
#1A547E #1A227E #441A7E
triadic
#1A227E #7E1A22 #227E1A
tetradic
#1A227E #7E1A54 #7E761A #1A7E44
square
#1A227E #7E1A54 #7E761A #1A7E44
split-complementary
#1A227E #7E441A #547E1A
monochromatic
#050719 #10144B #1A227E #2430B1 #3C48D7

Accessibility & contrast

On white

13.34
#1A227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1A227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A227E
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A227E#FFFFFF#000000##FFFFFF
##1A227E1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1a227e;
/* rgb */ color: rgb(26, 34, 126);
/* oklch */ color: oklch(31.9% 0.152 270.5);
Tailwind
colors: {
  custom: {
    50: '#695da4',
    500: '#1a227e',
    950: '#000000',
  },
}
SCSS
$custom: #1a227e;
$custom-light: #695da4;
$custom-dark: #000000;
JSON
{
  "hex": "#1a227e",
  "rgb": {
    "r": 26,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 235.2,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31903,
    "c": 0.15209,
    "h": 270.5
  },
  "luminance": 0.0287
}

Semantic roles & 50–950 ramp

primary
#1A227E
secondary
#B2A942
accent
#DB3FE9
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1A227E

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

Preview Lab → · Contrast checker → · Palette generator →

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