#1F1A9E#1F1A9E

#1F1A9E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.198 H 271.1°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#1F1A9E
RGBrgb(31, 26, 158)
HSLhsl(242, 72%, 36%)
HSVhsv(242, 84%, 62%)
CMYKcmyk(80.4%, 83.5%, 0%, 38%)
CIE-LABlab(21.94, 47.09, -68.45)
CIE-LCHlch(21.94, 83.08, 304.53°)
OKLaboklab(34.77% 0.0037 -0.1981)
OKLCHoklch(34.77% 0.198 271.1)
XYZxyz(7.1039, 3.4979, 32.6419)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1A9E #999E1A
analogous
#1A579E #1F1A9E #611A9E
triadic
#1F1A9E #9E1F1A #1A9E1F
tetradic
#1F1A9E #9E1A57 #999E1A #1A9E61
square
#1F1A9E #9E1A57 #999E1A #1A9E61
split-complementary
#1F1A9E #9E611A #579E1A
monochromatic
#0A0935 #151169 #1F1A9E #2923D3 #5650E2

Accessibility & contrast

On white

12.35
#1F1A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F1A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1A9E
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1A9E#FFFFFF#000000##FFFFFF
##1F1A9E1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA2
Deuteranopia (green-blind)
#002E9C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f1a9e;
/* rgb */ color: rgb(31, 26, 158);
/* oklch */ color: oklch(34.8% 0.198 271.1);
Tailwind
colors: {
  custom: {
    50: '#745bbc',
    500: '#1f1a9e',
    950: '#000000',
  },
}
SCSS
$custom: #1f1a9e;
$custom-light: #745bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1a9e",
  "rgb": {
    "r": 31,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 242.273,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.34774,
    "c": 0.19812,
    "h": 271.1
  },
  "luminance": 0.03499
}

Semantic roles & 50–950 ramp

primary
#1F1A9E
secondary
#C0C54F
accent
#EE39E8
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F1A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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