#1A127E#1A127E

#1A127E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.168 H 272.6°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#1A127E
RGBrgb(26, 18, 126)
HSLhsl(244, 75%, 28%)
HSVhsv(244, 86%, 49%)
CMYKcmyk(79.4%, 85.7%, 0%, 50.6%)
CIE-LABlab(16.30, 40.42, -57.85)
CIE-LCHlch(16.30, 70.57, 304.94°)
OKLaboklab(29.63% 0.0076 -0.1674)
OKLCHoklch(29.63% 0.168 272.6)
XYZxyz(4.4069, 2.1581, 19.9189)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A127E #767E12
analogous
#12407E #1A127E #50127E
triadic
#1A127E #7E1A12 #127E1A
tetradic
#1A127E #7E1240 #767E12 #127E50
square
#1A127E #7E1240 #767E12 #127E50
split-complementary
#1A127E #7E5012 #407E12
monochromatic
#06041B #0F0A48 #1A127E #251AB4 #372AE1

Accessibility & contrast

On white

14.67
#1A127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1A127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A127E
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A127E#FFFFFF#000000##FFFFFF
##1A127E1.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D81
Deuteranopia (green-blind)
#00237C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1a127e;
/* rgb */ color: rgb(26, 18, 126);
/* oklch */ color: oklch(29.6% 0.168 272.6);
Tailwind
colors: {
  custom: {
    50: '#6b54a5',
    500: '#1a127e',
    950: '#000000',
  },
}
SCSS
$custom: #1a127e;
$custom-light: #6b54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1a127e",
  "rgb": {
    "r": 26,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 244.444,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29633,
    "c": 0.16753,
    "h": 272.6
  },
  "luminance": 0.02159
}

Semantic roles & 50–950 ramp

primary
#1A127E
secondary
#ABB438
accent
#F236E4
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1A127E

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

Preview Lab → · Contrast checker → · Palette generator →

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