#1A317F#1A317F

#1A317F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.135 H 266.6°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#1A317F
RGBrgb(26, 49, 127)
HSLhsl(226, 66%, 30%)
HSVhsv(226, 80%, 50%)
CMYKcmyk(79.5%, 61.4%, 0%, 50.2%)
CIE-LABlab(23.50, 21.41, -46.63)
CIE-LCHlch(23.50, 51.31, 294.67°)
OKLaboklab(34.86% -0.008 -0.1347)
OKLCHoklch(34.86% 0.135 266.6)
XYZxyz(5.3537, 3.9479, 20.5544)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A317F #7F681A
analogous
#1A637F #1A317F #361A7F
triadic
#1A317F #7F1A31 #317F1A
tetradic
#1A317F #7F1A63 #7F681A #1A7F36
square
#1A317F #7F1A63 #7F681A #1A7F36
split-complementary
#1A317F #7F361A #637F1A
monochromatic
#050A19 #101D4C #1A317F #2445B2 #3C60D7

Accessibility & contrast

On white

11.73
#1A317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1A317F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A317F
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A317F#FFFFFF#000000##FFFFFF
##1A317F1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1a317f;
/* rgb */ color: rgb(26, 49, 127);
/* oklch */ color: oklch(34.9% 0.135 266.6);
Tailwind
colors: {
  custom: {
    50: '#6868a5',
    500: '#1a317f',
    950: '#000000',
  },
}
SCSS
$custom: #1a317f;
$custom-light: #6868a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1a317f",
  "rgb": {
    "r": 26,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 226.337,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.34857,
    "c": 0.13495,
    "h": 266.6
  },
  "luminance": 0.03949
}

Semantic roles & 50–950 ramp

primary
#1A317F
secondary
#B39942
accent
#C23FE9
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1A317F

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

Preview Lab → · Contrast checker → · Palette generator →

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