#1A2170#1A2170

#1A2170 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.2% C 0.134 H 271.5°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#1A2170
RGBrgb(26, 33, 112)
HSLhsl(235, 62%, 27%)
HSVhsv(235, 77%, 44%)
CMYKcmyk(76.8%, 70.5%, 0%, 56.1%)
CIE-LABlab(17.81, 26.61, -46.35)
CIE-LCHlch(17.81, 53.45, 299.86°)
OKLaboklab(30.23% 0.0035 -0.134)
OKLCHoklch(30.23% 0.134 271.5)
XYZxyz(3.8935, 2.4768, 15.5990)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2170 #70691A
analogous
#1A4C70 #1A2170 #3E1A70
triadic
#1A2170 #701A21 #21701A
tetradic
#1A2170 #701A4C #70691A #1A703E
square
#1A2170 #701A4C #70691A #1A703E
split-complementary
#1A2170 #703E1A #4C701A
monochromatic
#060719 #0E123E #1A2170 #2630A2 #3441D0

Accessibility & contrast

On white

14.04
#1A2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#1A2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2170
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2170#FFFFFF#000000##FFFFFF
##1A21701.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1a2170;
/* rgb */ color: rgb(26, 33, 112);
/* oklch */ color: oklch(30.2% 0.134 271.5);
Tailwind
colors: {
  custom: {
    50: '#655c9a',
    500: '#1a2170',
    950: '#000000',
  },
}
SCSS
$custom: #1a2170;
$custom-light: #655c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2170",
  "rgb": {
    "r": 26,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 235.116,
    "s": 62.319,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30234,
    "c": 0.1341,
    "h": 271.5
  },
  "luminance": 0.02477
}

Semantic roles & 50–950 ramp

primary
#1A2170
secondary
#A59D41
accent
#D842E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #1A2170

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

Preview Lab → · Contrast checker → · Palette generator →

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