#1A317D#1A317D

#1A317D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.7% C 0.132 H 266.5°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#1A317D
RGBrgb(26, 49, 125)
HSLhsl(226, 66%, 30%)
HSVhsv(226, 79%, 49%)
CMYKcmyk(79.2%, 60.8%, 0%, 51%)
CIE-LABlab(23.33, 20.61, -45.65)
CIE-LCHlch(23.33, 50.08, 294.29°)
OKLaboklab(34.67% -0.0081 -0.1318)
OKLCHoklch(34.67% 0.132 266.5)
XYZxyz(5.2247, 3.8963, 19.8748)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A317D #7D661A
analogous
#1A627D #1A317D #351A7D
triadic
#1A317D #7D1A31 #317D1A
tetradic
#1A317D #7D1A62 #7D661A #1A7D35
square
#1A317D #7D1A62 #7D661A #1A7D35
split-complementary
#1A317D #7D351A #627D1A
monochromatic
#050A19 #0F1D4A #1A317D #2545B0 #3B5FD6

Accessibility & contrast

On white

11.80
#1A317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1A317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A317D
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A317D#FFFFFF#000000##FFFFFF
##1A317D1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1a317d;
/* rgb */ color: rgb(26, 49, 125);
/* oklch */ color: oklch(34.7% 0.132 266.5);
Tailwind
colors: {
  custom: {
    50: '#6768a3',
    500: '#1a317d',
    950: '#000000',
  },
}
SCSS
$custom: #1a317d;
$custom-light: #6768a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1a317d",
  "rgb": {
    "r": 26,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 226.061,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34674,
    "c": 0.13208,
    "h": 266.5
  },
  "luminance": 0.03897
}

Semantic roles & 50–950 ramp

primary
#1A317D
secondary
#B19742
accent
#C13FE9
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1A317D

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

Preview Lab → · Contrast checker → · Palette generator →

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