#1A2872#1A2872

#1A2872 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.8% C 0.128 H 269.3°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#1A2872
RGBrgb(26, 40, 114)
HSLhsl(230, 63%, 27%)
HSVhsv(230, 77%, 45%)
CMYKcmyk(77.2%, 64.9%, 0%, 55.3%)
CIE-LABlab(19.85, 22.54, -44.31)
CIE-LCHlch(19.85, 49.71, 296.96°)
OKLaboklab(31.79% -0.0015 -0.128)
OKLCHoklch(31.79% 0.128 269.3)
XYZxyz(4.2210, 2.9517, 16.2636)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2872 #72641A
analogous
#1A5472 #1A2872 #381A72
triadic
#1A2872 #721A28 #28721A
tetradic
#1A2872 #721A54 #72641A #1A7238
square
#1A2872 #721A54 #72641A #1A7238
split-complementary
#1A2872 #72381A #54721A
monochromatic
#060919 #0F1740 #1A2872 #2539A4 #354ED1

Accessibility & contrast

On white

13.20
#1A2872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1A2872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2872
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2872#FFFFFF#000000##FFFFFF
##1A28721.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1a2872;
/* rgb */ color: rgb(26, 40, 114);
/* oklch */ color: oklch(31.8% 0.128 269.3);
Tailwind
colors: {
  custom: {
    50: '#65619b',
    500: '#1a2872',
    950: '#000000',
  },
}
SCSS
$custom: #1a2872;
$custom-light: #65619b;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2872",
  "rgb": {
    "r": 26,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 230.455,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31785,
    "c": 0.12802,
    "h": 269.3
  },
  "luminance": 0.02952
}

Semantic roles & 50–950 ramp

primary
#1A2872
secondary
#A79741
accent
#CC42E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #1A2872

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

Preview Lab → · Contrast checker → · Palette generator →

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