#1A2874#1A2874

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

Color values

HEX#1A2874
RGBrgb(26, 40, 116)
HSLhsl(231, 63%, 28%)
HSVhsv(231, 78%, 45%)
CMYKcmyk(77.6%, 65.5%, 0%, 54.5%)
CIE-LABlab(20.03, 23.34, -45.29)
CIE-LCHlch(20.03, 50.95, 297.26°)
OKLaboklab(31.98% -0.0016 -0.1309)
OKLCHoklch(31.98% 0.131 269.3)
XYZxyz(4.3361, 2.9977, 16.8697)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2874 #74661A
analogous
#1A5574 #1A2874 #391A74
triadic
#1A2874 #741A28 #28741A
tetradic
#1A2874 #741A55 #74661A #1A7439
square
#1A2874 #741A55 #74661A #1A7439
split-complementary
#1A2874 #74391A #55741A
monochromatic
#060919 #0F1742 #1A2874 #2539A6 #364FD2

Accessibility & contrast

On white

13.13
#1A2874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1A2874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2874
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2874#FFFFFF#000000##FFFFFF
##1A28741.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#002C73
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1a2874;
/* rgb */ color: rgb(26, 40, 116);
/* oklch */ color: oklch(32.0% 0.131 269.3);
Tailwind
colors: {
  custom: {
    50: '#66619d',
    500: '#1a2874',
    950: '#000000',
  },
}
SCSS
$custom: #1a2874;
$custom-light: #66619d;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2874",
  "rgb": {
    "r": 26,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 230.667,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31979,
    "c": 0.1309,
    "h": 269.3
  },
  "luminance": 0.02998
}

Semantic roles & 50–950 ramp

primary
#1A2874
secondary
#A99941
accent
#CD41E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1A2874

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

Preview Lab → · Contrast checker → · Palette generator →

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