#1A2F8D#1A2F8D

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

Color values

HEX#1A2F8D
RGBrgb(26, 47, 141)
HSLhsl(229, 69%, 33%)
HSVhsv(229, 82%, 55%)
CMYKcmyk(81.6%, 66.7%, 0%, 44.7%)
CIE-LABlab(24.24, 28.34, -54.17)
CIE-LCHlch(24.24, 61.14, 297.62°)
OKLaboklab(35.8% -0.0069 -0.1568)
OKLCHoklch(35.8% 0.157 267.5)
XYZxyz(6.2486, 4.1750, 25.6707)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2F8D #8D781A
analogous
#1A698D #1A2F8D #3E1A8D
triadic
#1A2F8D #8D1A2F #2F8D1A
tetradic
#1A2F8D #8D1A69 #8D781A #1A8D3E
square
#1A2F8D #8D1A69 #8D781A #1A8D3E
split-complementary
#1A2F8D #8D3E1A #698D1A
monochromatic
#070D26 #101E59 #1A2F8D #2440C1 #4560DD

Accessibility & contrast

On white

11.44
#1A2F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A2F8D
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2F8D#FFFFFF#000000##FFFFFF
##1A2F8D1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1a2f8d;
/* rgb */ color: rgb(26, 47, 141);
/* oklch */ color: oklch(35.8% 0.157 267.5);
Tailwind
colors: {
  custom: {
    50: '#6c67af',
    500: '#1a2f8d',
    950: '#000000',
  },
}
SCSS
$custom: #1a2f8d;
$custom-light: #6c67af;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2f8d",
  "rgb": {
    "r": 26,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 229.043,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35801,
    "c": 0.15698,
    "h": 267.5
  },
  "luminance": 0.04176
}

Semantic roles & 50–950 ramp

primary
#1A2F8D
secondary
#BEA845
accent
#CC3CEC
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1A2F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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