#1F1E8A#1F1E8A

#1F1E8A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.170 H 272.3°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#1F1E8A
RGBrgb(31, 30, 138)
HSLhsl(241, 64%, 33%)
HSVhsv(241, 78%, 54%)
CMYKcmyk(77.5%, 78.3%, 0%, 45.9%)
CIE-LABlab(20.26, 38.45, -58.85)
CIE-LCHlch(20.26, 70.30, 303.15°)
OKLaboklab(32.91% 0.0069 -0.1703)
OKLCHoklch(32.91% 0.17 272.3)
XYZxyz(5.6153, 3.0542, 24.3334)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1E8A #898A1E
analogous
#1E538A #1F1E8A #551E8A
triadic
#1F1E8A #8A1F1E #1E8A1F
tetradic
#1F1E8A #8A1E53 #898A1E #1E8A55
square
#1F1E8A #8A1E53 #898A1E #1E8A55
split-complementary
#1F1E8A #8A551E #538A1E
monochromatic
#080825 #141358 #1F1E8A #2A29BC #4C4BD8

Accessibility & contrast

On white

13.04
#1F1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1F1E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1E8A
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1E8A#FFFFFF#000000##FFFFFF
##1F1E8A1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002B88
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f1e8a;
/* rgb */ color: rgb(31, 30, 138);
/* oklch */ color: oklch(32.9% 0.170 272.3);
Tailwind
colors: {
  custom: {
    50: '#6e5cad',
    500: '#1f1e8a',
    950: '#000000',
  },
}
SCSS
$custom: #1f1e8a;
$custom-light: #6e5cad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1e8a",
  "rgb": {
    "r": 31,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 240.556,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.32908,
    "c": 0.17048,
    "h": 272.3
  },
  "luminance": 0.03055
}

Semantic roles & 50–950 ramp

primary
#1F1E8A
secondary
#B9BA4A
accent
#E741E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #1F1E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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