#1A2F8F#1A2F8F

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

Color values

HEX#1A2F8F
RGBrgb(26, 47, 143)
HSLhsl(229, 69%, 33%)
HSVhsv(229, 82%, 56%)
CMYKcmyk(81.8%, 67.1%, 0%, 43.9%)
CIE-LABlab(24.43, 29.12, -55.10)
CIE-LCHlch(24.43, 62.32, 297.86°)
OKLaboklab(36% -0.007 -0.1595)
OKLCHoklch(36% 0.16 267.5)
XYZxyz(6.3987, 4.2351, 26.4615)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2F8F #8F7A1A
analogous
#1A698F #1A2F8F #3F1A8F
triadic
#1A2F8F #8F1A2F #2F8F1A
tetradic
#1A2F8F #8F1A69 #8F7A1A #1A8F3F
square
#1A2F8F #8F1A69 #8F7A1A #1A8F3F
split-complementary
#1A2F8F #8F3F1A #698F1A
monochromatic
#070D27 #111E5B #1A2F8F #2340C3 #4661DD

Accessibility & contrast

On white

11.37
#1A2F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#1A2F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2F8F
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2F8F#FFFFFF#000000##FFFFFF
##1A2F8F1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1a2f8f;
/* rgb */ color: rgb(26, 47, 143);
/* oklch */ color: oklch(36.0% 0.160 267.5);
Tailwind
colors: {
  custom: {
    50: '#6c67b1',
    500: '#1a2f8f',
    950: '#000000',
  },
}
SCSS
$custom: #1a2f8f;
$custom-light: #6c67b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2f8f",
  "rgb": {
    "r": 26,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 229.231,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36001,
    "c": 0.15968,
    "h": 267.5
  },
  "luminance": 0.04236
}

Semantic roles & 50–950 ramp

primary
#1A2F8F
secondary
#BFA946
accent
#CC3CEC
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1A2F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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