#1A227C#1A227C

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

Color values

HEX#1A227C
RGBrgb(26, 34, 124)
HSLhsl(235, 65%, 29%)
HSVhsv(235, 79%, 49%)
CMYKcmyk(79%, 72.6%, 0%, 51.4%)
CIE-LABlab(19.30, 30.51, -51.61)
CIE-LCHlch(19.30, 59.95, 300.59°)
OKLaboklab(31.69% 0.0015 -0.1494)
OKLCHoklch(31.69% 0.149 270.6)
XYZxyz(4.6349, 2.8184, 19.3646)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A227C #7C741A
analogous
#1A537C #1A227C #431A7C
triadic
#1A227C #7C1A22 #227C1A
tetradic
#1A227C #7C1A53 #7C741A #1A7C43
square
#1A227C #7C1A53 #7C741A #1A7C43
split-complementary
#1A227C #7C431A #537C1A
monochromatic
#050719 #0F1449 #1A227C #2530AF #3B47D6

Accessibility & contrast

On white

13.43
#1A227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A227C
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A227C#FFFFFF#000000##FFFFFF
##1A227C1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1a227c;
/* rgb */ color: rgb(26, 34, 124);
/* oklch */ color: oklch(31.7% 0.149 270.6);
Tailwind
colors: {
  custom: {
    50: '#695da3',
    500: '#1a227c',
    950: '#000000',
  },
}
SCSS
$custom: #1a227c;
$custom-light: #695da3;
$custom-dark: #000000;
JSON
{
  "hex": "#1a227c",
  "rgb": {
    "r": 26,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 235.102,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31687,
    "c": 0.1494,
    "h": 270.6
  },
  "luminance": 0.02819
}

Semantic roles & 50–950 ramp

primary
#1A227C
secondary
#B0A742
accent
#DB40E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1A227C

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

Preview Lab → · Contrast checker → · Palette generator →

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