#1A127B#1A127B

#1A127B is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.164 H 272.9°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#1A127B
RGBrgb(26, 18, 123)
HSLhsl(245, 74%, 28%)
HSVhsv(245, 85%, 48%)
CMYKcmyk(78.9%, 85.4%, 0%, 51.8%)
CIE-LABlab(15.91, 39.45, -56.58)
CIE-LCHlch(15.91, 68.97, 304.89°)
OKLaboklab(29.26% 0.0084 -0.1637)
OKLCHoklch(29.26% 0.164 272.9)
XYZxyz(4.2163, 2.0818, 18.9147)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A127B #737B12
analogous
#123F7B #1A127B #4E127B
triadic
#1A127B #7B1A12 #127B1A
tetradic
#1A127B #7B123F #737B12 #127B4E
square
#1A127B #7B123F #737B12 #127B4E
split-complementary
#1A127B #7B4E12 #3F7B12
monochromatic
#06041B #0F0A46 #1A127B #251AB0 #3628E0

Accessibility & contrast

On white

14.83
#1A127B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1A127B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A127B
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A127B#FFFFFF#000000##FFFFFF
##1A127B1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C7E
Deuteranopia (green-blind)
#002279
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1a127b;
/* rgb */ color: rgb(26, 18, 123);
/* oklch */ color: oklch(29.3% 0.164 272.9);
Tailwind
colors: {
  custom: {
    50: '#6a54a2',
    500: '#1a127b',
    950: '#000000',
  },
}
SCSS
$custom: #1a127b;
$custom-light: #6a54a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1a127b",
  "rgb": {
    "r": 26,
    "g": 18,
    "b": 123
  },
  "hsl": {
    "h": 244.571,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29256,
    "c": 0.16387,
    "h": 272.9
  },
  "luminance": 0.02082
}

Semantic roles & 50–950 ramp

primary
#1A127B
secondary
#A8B138
accent
#F137E3
background
#F6F4FA
surface
#ECE8F4
border
#C7C4CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1A127B

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

Preview Lab → · Contrast checker → · Palette generator →

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