#1F1E9D#1F1E9D

#1F1E9D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.194 H 270.9°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#1F1E9D
RGBrgb(31, 30, 157)
HSLhsl(240, 68%, 37%)
HSVhsv(240, 81%, 62%)
CMYKcmyk(80.3%, 80.9%, 0%, 38.4%)
CIE-LABlab(22.49, 44.80, -66.92)
CIE-LCHlch(22.49, 80.53, 303.80°)
OKLaboklab(35.12% 0.0029 -0.1937)
OKLCHoklch(35.12% 0.194 270.9)
XYZxyz(7.1131, 3.6534, 32.2220)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1E9D #9C9D1E
analogous
#1E5D9D #1F1E9D #5E1E9D
triadic
#1F1E9D #9D1F1E #1E9D1F
tetradic
#1F1E9D #9D1E5D #9C9D1E #1E9D5E
square
#1F1E9D #9D1E5D #9C9D1E #1E9D5E
split-complementary
#1F1E9D #9D5E1E #5D9D1E
monochromatic
#0B0A36 #15146A #1F1E9D #2928D0 #5857DF

Accessibility & contrast

On white

12.13
#1F1E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1F1E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1E9D
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1E9D#FFFFFF#000000##FFFFFF
##1F1E9D1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA1
Deuteranopia (green-blind)
#002F9B
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f1e9d;
/* rgb */ color: rgb(31, 30, 157);
/* oklch */ color: oklch(35.1% 0.194 270.9);
Tailwind
colors: {
  custom: {
    50: '#735dbb',
    500: '#1f1e9d',
    950: '#000000',
  },
}
SCSS
$custom: #1f1e9d;
$custom-light: #735dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1e9d",
  "rgb": {
    "r": 31,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 240.472,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35124,
    "c": 0.19375,
    "h": 270.9
  },
  "luminance": 0.03654
}

Semantic roles & 50–950 ramp

primary
#1F1E9D
secondary
#C1C254
accent
#EB3DE9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F1E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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