#1A2F8E#1A2F8E

#1A2F8E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.158 H 267.5°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#1A2F8E
RGBrgb(26, 47, 142)
HSLhsl(229, 69%, 33%)
HSVhsv(229, 82%, 56%)
CMYKcmyk(81.7%, 66.9%, 0%, 44.3%)
CIE-LABlab(24.34, 28.73, -54.63)
CIE-LCHlch(24.34, 61.73, 297.74°)
OKLaboklab(35.9% -0.007 -0.1582)
OKLCHoklch(35.9% 0.158 267.5)
XYZxyz(6.3233, 4.2049, 26.0643)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2F8E #8E791A
analogous
#1A698E #1A2F8E #3F1A8E
triadic
#1A2F8E #8E1A2F #2F8E1A
tetradic
#1A2F8E #8E1A69 #8E791A #1A8E3F
square
#1A2F8E #8E1A69 #8E791A #1A8E3F
split-complementary
#1A2F8E #8E3F1A #698E1A
monochromatic
#070D27 #111E5A #1A2F8E #2340C2 #4561DD

Accessibility & contrast

On white

11.41
#1A2F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1A2F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2F8E
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2F8E#FFFFFF#000000##FFFFFF
##1A2F8E1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1a2f8e;
/* rgb */ color: rgb(26, 47, 142);
/* oklch */ color: oklch(35.9% 0.158 267.5);
Tailwind
colors: {
  custom: {
    50: '#6c67b0',
    500: '#1a2f8e',
    950: '#000000',
  },
}
SCSS
$custom: #1a2f8e;
$custom-light: #6c67b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2f8e",
  "rgb": {
    "r": 26,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 229.138,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35901,
    "c": 0.15833,
    "h": 267.5
  },
  "luminance": 0.04206
}

Semantic roles & 50–950 ramp

primary
#1A2F8E
secondary
#BEA845
accent
#CC3CEC
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1A2F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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