#1F1E9A#1F1E9A

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

Color values

HEX#1F1E9A
RGBrgb(31, 30, 154)
HSLhsl(240, 67%, 36%)
HSVhsv(240, 81%, 60%)
CMYKcmyk(79.9%, 80.5%, 0%, 39.6%)
CIE-LABlab(22.13, 43.82, -65.67)
CIE-LCHlch(22.13, 78.95, 303.71°)
OKLaboklab(34.77% 0.0035 -0.1901)
OKLCHoklch(34.77% 0.19 271.1)
XYZxyz(6.8601, 3.5522, 30.8897)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1E9A #999A1E
analogous
#1E5B9A #1F1E9A #5D1E9A
triadic
#1F1E9A #9A1F1E #1E9A1F
tetradic
#1F1E9A #9A1E5B #999A1E #1E9A5D
square
#1F1E9A #9A1E5B #999A1E #1E9A5D
split-complementary
#1F1E9A #9A5D1E #5B9A1E
monochromatic
#0A0A34 #151467 #1F1E9A #2928CD #5655DE

Accessibility & contrast

On white

12.28
#1F1E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1F1E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1E9A
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1E9A#FFFFFF#000000##FFFFFF
##1F1E9A1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9D
Deuteranopia (green-blind)
#002F98
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f1e9a;
/* rgb */ color: rgb(31, 30, 154);
/* oklch */ color: oklch(34.8% 0.190 271.1);
Tailwind
colors: {
  custom: {
    50: '#735db9',
    500: '#1f1e9a',
    950: '#000000',
  },
}
SCSS
$custom: #1f1e9a;
$custom-light: #735db9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1e9a",
  "rgb": {
    "r": 31,
    "g": 30,
    "b": 154
  },
  "hsl": {
    "h": 240.484,
    "s": 67.391,
    "l": 36.078
  },
  "oklch": {
    "l": 0.34769,
    "c": 0.19015,
    "h": 271.1
  },
  "luminance": 0.03553
}

Semantic roles & 50–950 ramp

primary
#1F1E9A
secondary
#C0C153
accent
#EA3EE9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F1E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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