#1A227F#1A227F

#1A227F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.153 H 270.4°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#1A227F
RGBrgb(26, 34, 127)
HSLhsl(235, 66%, 30%)
HSVhsv(235, 80%, 50%)
CMYKcmyk(79.5%, 73.2%, 0%, 50.2%)
CIE-LABlab(19.62, 31.63, -52.99)
CIE-LCHlch(19.62, 61.71, 300.84°)
OKLaboklab(32.01% 0.0012 -0.1534)
OKLCHoklch(32.01% 0.153 270.4)
XYZxyz(4.8275, 2.8954, 20.3790)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A227F #7F771A
analogous
#1A547F #1A227F #451A7F
triadic
#1A227F #7F1A22 #227F1A
tetradic
#1A227F #7F1A54 #7F771A #1A7F45
square
#1A227F #7F1A54 #7F771A #1A7F45
split-complementary
#1A227F #7F451A #547F1A
monochromatic
#050719 #10144C #1A227F #2430B2 #3C49D7

Accessibility & contrast

On white

13.30
#1A227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1A227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A227F
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A227F#FFFFFF#000000##FFFFFF
##1A227F1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1a227f;
/* rgb */ color: rgb(26, 34, 127);
/* oklch */ color: oklch(32.0% 0.153 270.4);
Tailwind
colors: {
  custom: {
    50: '#695da5',
    500: '#1a227f',
    950: '#000000',
  },
}
SCSS
$custom: #1a227f;
$custom-light: #695da5;
$custom-dark: #000000;
JSON
{
  "hex": "#1a227f",
  "rgb": {
    "r": 26,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 235.248,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.32012,
    "c": 0.15342,
    "h": 270.4
  },
  "luminance": 0.02896
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1A227F

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

Preview Lab → · Contrast checker → · Palette generator →

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