#1A317B#1A317B

#1A317B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.129 H 266.4°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#1A317B
RGBrgb(26, 49, 123)
HSLhsl(226, 65%, 29%)
HSVhsv(226, 79%, 48%)
CMYKcmyk(78.9%, 60.2%, 0%, 51.8%)
CIE-LABlab(23.15, 19.80, -44.66)
CIE-LCHlch(23.15, 48.85, 293.90°)
OKLaboklab(34.49% -0.0081 -0.1289)
OKLCHoklch(34.49% 0.129 266.4)
XYZxyz(5.0982, 3.8457, 19.2087)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A317B #7B641A
analogous
#1A627B #1A317B #341A7B
triadic
#1A317B #7B1A31 #317B1A
tetradic
#1A317B #7B1A62 #7B641A #1A7B34
square
#1A317B #7B1A62 #7B641A #1A7B34
split-complementary
#1A317B #7B341A #627B1A
monochromatic
#050A19 #0F1D48 #1A317B #2545AE #3A5FD5

Accessibility & contrast

On white

11.87
#1A317B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1A317B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A317B
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A317B#FFFFFF#000000##FFFFFF
##1A317B1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7D
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1a317b;
/* rgb */ color: rgb(26, 49, 123);
/* oklch */ color: oklch(34.5% 0.129 266.4);
Tailwind
colors: {
  custom: {
    50: '#6768a2',
    500: '#1a317b',
    950: '#000000',
  },
}
SCSS
$custom: #1a317b;
$custom-light: #6768a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1a317b",
  "rgb": {
    "r": 26,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 225.773,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34492,
    "c": 0.12919,
    "h": 266.4
  },
  "luminance": 0.03846
}

Semantic roles & 50–950 ramp

primary
#1A317B
secondary
#AF9542
accent
#C040E8
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1A317B

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

Preview Lab → · Contrast checker → · Palette generator →

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