#1A315E#1A315E

#1A315E is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.1% C 0.085 H 262.3°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#1A315E
RGBrgb(26, 49, 94)
HSLhsl(220, 57%, 24%)
HSVhsv(220, 72%, 37%)
CMYKcmyk(72.3%, 47.9%, 0%, 63.1%)
CIE-LABlab(20.92, 7.90, -29.56)
CIE-LCHlch(20.92, 30.60, 284.97°)
OKLaboklab(32.09% -0.0114 -0.0845)
OKLCHoklch(32.09% 0.085 262.3)
XYZxyz(3.5440, 3.2240, 11.0230)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A315E #5E471A
analogous
#1A535E #1A315E #251A5E
triadic
#1A315E #5E1A31 #315E1A
tetradic
#1A315E #5E1A53 #5E471A #1A5E25
square
#1A315E #5E1A53 #5E471A #1A5E25
split-complementary
#1A315E #5E251A #535E1A
monochromatic
#070C18 #0D182E #1A315E #274A8E #3563BE

Accessibility & contrast

On white

12.77
#1A315E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1A315E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A315E
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A315E#FFFFFF#000000##FFFFFF
##1A315E1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3660
Deuteranopia (green-blind)
#0F2F5D
Tritanopia (blue-blind)
#003B42
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1a315e;
/* rgb */ color: rgb(26, 49, 94);
/* oklch */ color: oklch(32.1% 0.085 262.3);
Tailwind
colors: {
  custom: {
    50: '#5f688c',
    500: '#1a315e',
    950: '#000000',
  },
}
SCSS
$custom: #1a315e;
$custom-light: #5f688c;
$custom-dark: #000000;
JSON
{
  "hex": "#1a315e",
  "rgb": {
    "r": 26,
    "g": 49,
    "b": 94
  },
  "hsl": {
    "h": 219.706,
    "s": 56.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.32087,
    "c": 0.08528,
    "h": 262.3
  },
  "luminance": 0.03224
}

Semantic roles & 50–950 ramp

primary
#1A315E
secondary
#947740
accent
#AD48E0
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #1A315E

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

Preview Lab → · Contrast checker → · Palette generator →

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