#1A2F81#1A2F81

#1A2F81 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.140 H 267.3°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#1A2F81
RGBrgb(26, 47, 129)
HSLhsl(228, 66%, 30%)
HSVhsv(228, 80%, 51%)
CMYKcmyk(79.8%, 63.6%, 0%, 49.4%)
CIE-LABlab(23.13, 23.62, -48.50)
CIE-LCHlch(23.13, 53.94, 295.96°)
OKLaboklab(34.63% -0.0066 -0.1402)
OKLCHoklch(34.63% 0.14 267.3)
XYZxyz(5.4036, 3.8370, 21.2205)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2F81 #816C1A
analogous
#1A6281 #1A2F81 #381A81
triadic
#1A2F81 #811A2F #2F811A
tetradic
#1A2F81 #811A62 #816C1A #1A8138
square
#1A2F81 #811A62 #816C1A #1A8138
split-complementary
#1A2F81 #81381A #62811A
monochromatic
#050A1B #101C4E #1A2F81 #2442B4 #3D5DD8

Accessibility & contrast

On white

11.88
#1A2F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1A2F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2F81
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2F81#FFFFFF#000000##FFFFFF
##1A2F811.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00327F
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1a2f81;
/* rgb */ color: rgb(26, 47, 129);
/* oklch */ color: oklch(34.6% 0.140 267.3);
Tailwind
colors: {
  custom: {
    50: '#6967a6',
    500: '#1a2f81',
    950: '#000000',
  },
}
SCSS
$custom: #1a2f81;
$custom-light: #6967a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2f81",
  "rgb": {
    "r": 26,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 227.767,
    "s": 66.452,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34634,
    "c": 0.14038,
    "h": 267.3
  },
  "luminance": 0.03838
}

Semantic roles & 50–950 ramp

primary
#1A2F81
secondary
#B59D42
accent
#C73EE9
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1A2F81

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

Preview Lab → · Contrast checker → · Palette generator →

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