#1A1F9F#1A1F9F

#1A1F9F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.197 H 269.1°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#1A1F9F
RGBrgb(26, 31, 159)
HSLhsl(238, 72%, 36%)
HSVhsv(238, 84%, 62%)
CMYKcmyk(83.6%, 80.5%, 0%, 37.6%)
CIE-LABlab(22.66, 44.65, -67.86)
CIE-LCHlch(22.66, 81.23, 303.34°)
OKLaboklab(35.24% -0.0031 -0.1966)
OKLCHoklch(35.24% 0.197 269.1)
XYZxyz(7.1719, 3.7019, 33.1307)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1F9F #9F9A1A
analogous
#1A629F #1A1F9F #581A9F
triadic
#1A1F9F #9F1A1F #1F9F1A
tetradic
#1A1F9F #9F1A62 #9F9A1A #1A9F58
square
#1A1F9F #9F1A62 #9F9A1A #1A9F58
split-complementary
#1A1F9F #9F581A #629F1A
monochromatic
#090A36 #11156A #1A1F9F #2329D4 #5156E3

Accessibility & contrast

On white

12.06
#1A1F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1A1F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1F9F
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1F9F#FFFFFF#000000##FFFFFF
##1A1F9F1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1a1f9f;
/* rgb */ color: rgb(26, 31, 159);
/* oklch */ color: oklch(35.2% 0.197 269.1);
Tailwind
colors: {
  custom: {
    50: '#725dbd',
    500: '#1a1f9f',
    950: '#000000',
  },
}
SCSS
$custom: #1a1f9f;
$custom-light: #725dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1f9f",
  "rgb": {
    "r": 26,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 237.744,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35243,
    "c": 0.1966,
    "h": 269.1
  },
  "luminance": 0.03703
}

Semantic roles & 50–950 ramp

primary
#1A1F9F
secondary
#C5C150
accent
#E839EF
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1A1F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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