#1A127F#1A127F

#1A127F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.169 H 272.5°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#1A127F
RGBrgb(26, 18, 127)
HSLhsl(244, 75%, 28%)
HSVhsv(244, 86%, 50%)
CMYKcmyk(79.5%, 85.8%, 0%, 50.2%)
CIE-LABlab(16.42, 40.74, -58.28)
CIE-LCHlch(16.42, 71.11, 304.96°)
OKLaboklab(29.76% 0.0073 -0.1686)
OKLCHoklch(29.76% 0.169 272.5)
XYZxyz(4.4718, 2.1840, 20.2604)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A127F #777F12
analogous
#12407F #1A127F #50127F
triadic
#1A127F #7F1A12 #127F1A
tetradic
#1A127F #7F1240 #777F12 #127F50
square
#1A127F #7F1240 #777F12 #127F50
split-complementary
#1A127F #7F5012 #407F12
monochromatic
#05041B #0F0A49 #1A127F #251AB5 #382BE1

Accessibility & contrast

On white

14.61
#1A127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1A127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A127F
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A127F#FFFFFF#000000##FFFFFF
##1A127F1.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00237D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1a127f;
/* rgb */ color: rgb(26, 18, 127);
/* oklch */ color: oklch(29.8% 0.169 272.5);
Tailwind
colors: {
  custom: {
    50: '#6b54a5',
    500: '#1a127f',
    950: '#000000',
  },
}
SCSS
$custom: #1a127f;
$custom-light: #6b54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1a127f",
  "rgb": {
    "r": 26,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 244.404,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29759,
    "c": 0.16874,
    "h": 272.5
  },
  "luminance": 0.02185
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1A127F

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

Preview Lab → · Contrast checker → · Palette generator →

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