#1A127D#1A127D

#1A127D is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.5% C 0.166 H 272.7°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#1A127D
RGBrgb(26, 18, 125)
HSLhsl(244, 75%, 28%)
HSVhsv(244, 86%, 49%)
CMYKcmyk(79.2%, 85.6%, 0%, 51%)
CIE-LABlab(16.17, 40.10, -57.43)
CIE-LCHlch(16.17, 70.04, 304.92°)
OKLaboklab(29.51% 0.0079 -0.1661)
OKLCHoklch(29.51% 0.166 272.7)
XYZxyz(4.3427, 2.1324, 19.5808)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A127D #757D12
analogous
#123F7D #1A127D #4F127D
triadic
#1A127D #7D1A12 #127D1A
tetradic
#1A127D #7D123F #757D12 #127D4F
square
#1A127D #7D123F #757D12 #127D4F
split-complementary
#1A127D #7D4F12 #3F7D12
monochromatic
#06041B #0F0A48 #1A127D #251AB2 #3729E0

Accessibility & contrast

On white

14.72
#1A127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A127D
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A127D#FFFFFF#000000##FFFFFF
##1A127D1.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D80
Deuteranopia (green-blind)
#00237B
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1a127d;
/* rgb */ color: rgb(26, 18, 125);
/* oklch */ color: oklch(29.5% 0.166 272.7);
Tailwind
colors: {
  custom: {
    50: '#6a54a4',
    500: '#1a127d',
    950: '#000000',
  },
}
SCSS
$custom: #1a127d;
$custom-light: #6a54a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1a127d",
  "rgb": {
    "r": 26,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 244.486,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29507,
    "c": 0.16632,
    "h": 272.7
  },
  "luminance": 0.02133
}

Semantic roles & 50–950 ramp

primary
#1A127D
secondary
#AAB338
accent
#F136E3
background
#F7F4FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1A127D

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

Preview Lab → · Contrast checker → · Palette generator →

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