#1A1F9E#1A1F9E

#1A1F9E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.195 H 269.2°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#1A1F9E
RGBrgb(26, 31, 158)
HSLhsl(238, 72%, 36%)
HSVhsv(238, 84%, 62%)
CMYKcmyk(83.5%, 80.4%, 0%, 38%)
CIE-LABlab(22.54, 44.31, -67.45)
CIE-LCHlch(22.54, 80.71, 303.30°)
OKLaboklab(35.12% -0.0029 -0.1954)
OKLCHoklch(35.12% 0.195 269.2)
XYZxyz(7.0854, 3.6674, 32.6756)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1F9E #9E991A
analogous
#1A619E #1A1F9E #571A9E
triadic
#1A1F9E #9E1A1F #1F9E1A
tetradic
#1A1F9E #9E1A61 #9E991A #1A9E57
square
#1A1F9E #9E1A61 #9E991A #1A9E57
split-complementary
#1A1F9E #9E571A #619E1A
monochromatic
#090A35 #111569 #1A1F9E #2329D3 #5056E2

Accessibility & contrast

On white

12.11
#1A1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1A1F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1F9E
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1F9E#FFFFFF#000000##FFFFFF
##1A1F9E1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#002F9C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1a1f9e;
/* rgb */ color: rgb(26, 31, 158);
/* oklch */ color: oklch(35.1% 0.195 269.2);
Tailwind
colors: {
  custom: {
    50: '#725dbc',
    500: '#1a1f9e',
    950: '#000000',
  },
}
SCSS
$custom: #1a1f9e;
$custom-light: #725dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1f9e",
  "rgb": {
    "r": 26,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 237.727,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35124,
    "c": 0.19541,
    "h": 269.2
  },
  "luminance": 0.03668
}

Semantic roles & 50–950 ramp

primary
#1A1F9E
secondary
#C5C04F
accent
#E839EE
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1A1F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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