#1A1272#1A1272

#1A1272 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.1% C 0.153 H 274.1°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#1A1272
RGBrgb(26, 18, 114)
HSLhsl(245, 73%, 26%)
HSVhsv(245, 84%, 45%)
CMYKcmyk(77.2%, 84.2%, 0%, 55.3%)
CIE-LABlab(14.77, 36.49, -52.67)
CIE-LCHlch(14.77, 64.07, 304.72°)
OKLaboklab(28.14% 0.0109 -0.1523)
OKLCHoklch(28.14% 0.153 274.1)
XYZxyz(3.6786, 1.8668, 16.0828)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1272 #6A7212
analogous
#123A72 #1A1272 #4A1272
triadic
#1A1272 #721A12 #12721A
tetradic
#1A1272 #72123A #6A7212 #12724A
square
#1A1272 #72123A #6A7212 #12724A
split-complementary
#1A1272 #724A12 #3A7212
monochromatic
#06041A #0E0A3D #1A1272 #261AA7 #3223DC

Accessibility & contrast

On white

15.29
#1A1272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#1A1272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1272
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1272#FFFFFF#000000##FFFFFF
##1A12721.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002975
Deuteranopia (green-blind)
#002170
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1a1272;
/* rgb */ color: rgb(26, 18, 114);
/* oklch */ color: oklch(28.1% 0.153 274.1);
Tailwind
colors: {
  custom: {
    50: '#67539c',
    500: '#1a1272',
    950: '#000000',
  },
}
SCSS
$custom: #1a1272;
$custom-light: #67539c;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1272",
  "rgb": {
    "r": 26,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 245,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28138,
    "c": 0.15272,
    "h": 274.1
  },
  "luminance": 0.01867
}

Semantic roles & 50–950 ramp

primary
#1A1272
secondary
#9FA937
accent
#EF38E0
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1A1272

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

Preview Lab → · Contrast checker → · Palette generator →

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