#1A227A#1A227A

#1A227A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.147 H 270.7°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#1A227A
RGBrgb(26, 34, 122)
HSLhsl(235, 65%, 29%)
HSVhsv(235, 79%, 48%)
CMYKcmyk(78.7%, 72.1%, 0%, 52.2%)
CIE-LABlab(19.09, 29.76, -50.68)
CIE-LCHlch(19.09, 58.77, 300.42°)
OKLaboklab(31.47% 0.0018 -0.1467)
OKLCHoklch(31.47% 0.147 270.7)
XYZxyz(4.5097, 2.7683, 18.7052)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A227A #7A721A
analogous
#1A527A #1A227A #421A7A
triadic
#1A227A #7A1A22 #227A1A
tetradic
#1A227A #7A1A52 #7A721A #1A7A42
square
#1A227A #7A1A52 #7A721A #1A7A42
split-complementary
#1A227A #7A421A #527A1A
monochromatic
#050719 #0F1448 #1A227A #2530AC #3946D5

Accessibility & contrast

On white

13.52
#1A227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1A227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A227A
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A227A#FFFFFF#000000##FFFFFF
##1A227A1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1a227a;
/* rgb */ color: rgb(26, 34, 122);
/* oklch */ color: oklch(31.5% 0.147 270.7);
Tailwind
colors: {
  custom: {
    50: '#685da1',
    500: '#1a227a',
    950: '#000000',
  },
}
SCSS
$custom: #1a227a;
$custom-light: #685da1;
$custom-dark: #000000;
JSON
{
  "hex": "#1a227a",
  "rgb": {
    "r": 26,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 235,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31472,
    "c": 0.1467,
    "h": 270.7
  },
  "luminance": 0.02769
}

Semantic roles & 50–950 ramp

primary
#1A227A
secondary
#AEA541
accent
#DA40E8
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1A227A

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

Preview Lab → · Contrast checker → · Palette generator →

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