#1A1270#1A1270

#1A1270 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.9% C 0.150 H 274.4°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#1A1270
RGBrgb(26, 18, 112)
HSLhsl(245, 72%, 25%)
HSVhsv(245, 84%, 44%)
CMYKcmyk(76.8%, 83.9%, 0%, 56.1%)
CIE-LABlab(14.52, 35.82, -51.78)
CIE-LCHlch(14.52, 62.97, 304.68°)
OKLaboklab(27.89% 0.0114 -0.1498)
OKLCHoklch(27.89% 0.15 274.4)
XYZxyz(3.5660, 1.8217, 15.4898)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1270 #687012
analogous
#123970 #1A1270 #491270
triadic
#1A1270 #701A12 #12701A
tetradic
#1A1270 #701239 #687012 #127049
square
#1A1270 #701239 #687012 #127049
split-complementary
#1A1270 #704912 #397012
monochromatic
#06041A #0E0A3B #1A1270 #261AA5 #3223D9

Accessibility & contrast

On white

15.39
#1A1270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#1A1270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1270
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1270#FFFFFF#000000##FFFFFF
##1A12701.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002973
Deuteranopia (green-blind)
#00206E
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1a1270;
/* rgb */ color: rgb(26, 18, 112);
/* oklch */ color: oklch(27.9% 0.150 274.4);
Tailwind
colors: {
  custom: {
    50: '#67539a',
    500: '#1a1270',
    950: '#000000',
  },
}
SCSS
$custom: #1a1270;
$custom-light: #67539a;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1270",
  "rgb": {
    "r": 26,
    "g": 18,
    "b": 112
  },
  "hsl": {
    "h": 245.106,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.27892,
    "c": 0.1502,
    "h": 274.4
  },
  "luminance": 0.01822
}

Semantic roles & 50–950 ramp

primary
#1A1270
secondary
#9DA737
accent
#EF39E0
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1A1270

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

Preview Lab → · Contrast checker → · Palette generator →

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