#1A227D#1A227D

#1A227D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.151 H 270.5°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#1A227D
RGBrgb(26, 34, 125)
HSLhsl(235, 66%, 30%)
HSVhsv(235, 79%, 49%)
CMYKcmyk(79.2%, 72.8%, 0%, 51%)
CIE-LABlab(19.41, 30.88, -52.07)
CIE-LCHlch(19.41, 60.54, 300.67°)
OKLaboklab(31.8% 0.0014 -0.1507)
OKLCHoklch(31.8% 0.151 270.5)
XYZxyz(4.6984, 2.8438, 19.6994)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A227D #7D751A
analogous
#1A537D #1A227D #441A7D
triadic
#1A227D #7D1A22 #227D1A
tetradic
#1A227D #7D1A53 #7D751A #1A7D44
square
#1A227D #7D1A53 #7D751A #1A7D44
split-complementary
#1A227D #7D441A #537D1A
monochromatic
#050719 #0F144A #1A227D #2530B0 #3B48D6

Accessibility & contrast

On white

13.39
#1A227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A227D
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A227D#FFFFFF#000000##FFFFFF
##1A227D1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1a227d;
/* rgb */ color: rgb(26, 34, 125);
/* oklch */ color: oklch(31.8% 0.151 270.5);
Tailwind
colors: {
  custom: {
    50: '#695da4',
    500: '#1a227d',
    950: '#000000',
  },
}
SCSS
$custom: #1a227d;
$custom-light: #695da4;
$custom-dark: #000000;
JSON
{
  "hex": "#1a227d",
  "rgb": {
    "r": 26,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 235.152,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31795,
    "c": 0.15075,
    "h": 270.5
  },
  "luminance": 0.02844
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1A227D

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

Preview Lab → · Contrast checker → · Palette generator →

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