#1F1A8A#1F1A8A

#1F1A8A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.174 H 272.8°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#1F1A8A
RGBrgb(31, 26, 138)
HSLhsl(243, 68%, 32%)
HSVhsv(243, 81%, 54%)
CMYKcmyk(77.5%, 81.2%, 0%, 45.9%)
CIE-LABlab(19.49, 40.65, -60.12)
CIE-LCHlch(19.49, 72.57, 304.06°)
OKLaboklab(32.37% 0.0085 -0.174)
OKLCHoklch(32.37% 0.174 272.8)
XYZxyz(5.5204, 2.8645, 24.3018)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1A8A #858A1A
analogous
#1A4D8A #1F1A8A #571A8A
triadic
#1F1A8A #8A1F1A #1A8A1F
tetradic
#1F1A8A #8A1A4D #858A1A #1A8A57
square
#1F1A8A #8A1A4D #858A1A #1A8A57
split-complementary
#1F1A8A #8A571A #4D8A1A
monochromatic
#080723 #131057 #1F1A8A #2B24BD #4A43DC

Accessibility & contrast

On white

13.35
#1F1A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1F1A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1A8A
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1A8A#FFFFFF#000000##FFFFFF
##1F1A8A1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348D
Deuteranopia (green-blind)
#002A88
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f1a8a;
/* rgb */ color: rgb(31, 26, 138);
/* oklch */ color: oklch(32.4% 0.174 272.8);
Tailwind
colors: {
  custom: {
    50: '#6f59ad',
    500: '#1f1a8a',
    950: '#000000',
  },
}
SCSS
$custom: #1f1a8a;
$custom-light: #6f59ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1a8a",
  "rgb": {
    "r": 31,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 242.679,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3237,
    "c": 0.17419,
    "h": 272.8
  },
  "luminance": 0.02865
}

Semantic roles & 50–950 ramp

primary
#1F1A8A
secondary
#B7BD43
accent
#EB3DE3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #1F1A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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