#1A1F9D#1A1F9D

#1A1F9D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.194 H 269.2°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#1A1F9D
RGBrgb(26, 31, 157)
HSLhsl(238, 72%, 36%)
HSVhsv(238, 83%, 62%)
CMYKcmyk(83.4%, 80.3%, 0%, 38.4%)
CIE-LABlab(22.42, 43.98, -67.04)
CIE-LCHlch(22.42, 80.18, 303.27°)
OKLaboklab(35% -0.0027 -0.1942)
OKLCHoklch(35% 0.194 269.2)
XYZxyz(6.9997, 3.6331, 32.2241)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1F9D #9D981A
analogous
#1A609D #1A1F9D #561A9D
triadic
#1A1F9D #9D1A1F #1F9D1A
tetradic
#1A1F9D #9D1A60 #9D981A #1A9D56
square
#1A1F9D #9D1A60 #9D981A #1A9D56
split-complementary
#1A1F9D #9D561A #609D1A
monochromatic
#090A34 #111568 #1A1F9D #2329D2 #4F55E2

Accessibility & contrast

On white

12.16
#1A1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A1F9D
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1F9D#FFFFFF#000000##FFFFFF
##1A1F9D1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA1
Deuteranopia (green-blind)
#002F9B
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1a1f9d;
/* rgb */ color: rgb(26, 31, 157);
/* oklch */ color: oklch(35.0% 0.194 269.2);
Tailwind
colors: {
  custom: {
    50: '#725dbb',
    500: '#1a1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #1a1f9d;
$custom-light: #725dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1f9d",
  "rgb": {
    "r": 26,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 237.71,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35005,
    "c": 0.19422,
    "h": 269.2
  },
  "luminance": 0.03634
}

Semantic roles & 50–950 ramp

primary
#1A1F9D
secondary
#C4C04E
accent
#E739EE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1A1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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