#1A317E#1A317E

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

Color values

HEX#1A317E
RGBrgb(26, 49, 126)
HSLhsl(226, 66%, 30%)
HSVhsv(226, 79%, 49%)
CMYKcmyk(79.4%, 61.1%, 0%, 50.6%)
CIE-LABlab(23.41, 21.01, -46.14)
CIE-LCHlch(23.41, 50.70, 294.48°)
OKLaboklab(34.77% -0.008 -0.1333)
OKLCHoklch(34.77% 0.134 266.5)
XYZxyz(5.2889, 3.9220, 20.2129)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A317E #7E671A
analogous
#1A637E #1A317E #351A7E
triadic
#1A317E #7E1A31 #317E1A
tetradic
#1A317E #7E1A63 #7E671A #1A7E35
square
#1A317E #7E1A63 #7E671A #1A7E35
split-complementary
#1A317E #7E351A #637E1A
monochromatic
#050A19 #101D4B #1A317E #2445B1 #3C5FD7

Accessibility & contrast

On white

11.77
#1A317E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A317E
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A317E#FFFFFF#000000##FFFFFF
##1A317E1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1a317e;
/* rgb */ color: rgb(26, 49, 126);
/* oklch */ color: oklch(34.8% 0.134 266.5);
Tailwind
colors: {
  custom: {
    50: '#6868a4',
    500: '#1a317e',
    950: '#000000',
  },
}
SCSS
$custom: #1a317e;
$custom-light: #6868a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1a317e",
  "rgb": {
    "r": 26,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 226.2,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34765,
    "c": 0.13351,
    "h": 266.5
  },
  "luminance": 0.03923
}

Semantic roles & 50–950 ramp

primary
#1A317E
secondary
#B29842
accent
#C23FE9
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1A317E

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

Preview Lab → · Contrast checker → · Palette generator →

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