#1F1E9F#1F1E9F

#1F1E9F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.196 H 270.7°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#1F1E9F
RGBrgb(31, 30, 159)
HSLhsl(240, 68%, 37%)
HSVhsv(240, 81%, 62%)
CMYKcmyk(80.5%, 81.1%, 0%, 37.6%)
CIE-LABlab(22.73, 45.45, -67.74)
CIE-LCHlch(22.73, 81.57, 303.86°)
OKLaboklab(35.36% 0.0025 -0.1961)
OKLCHoklch(35.36% 0.196 270.7)
XYZxyz(7.2852, 3.7222, 33.1287)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1E9F #9E9F1E
analogous
#1E5E9F #1F1E9F #601E9F
triadic
#1F1E9F #9F1F1E #1E9F1F
tetradic
#1F1E9F #9F1E5E #9E9F1E #1E9F60
square
#1F1E9F #9F1E5E #9E9F1E #1E9F60
split-complementary
#1F1E9F #9F601E #5E9F1E
monochromatic
#0B0B38 #15146C #1F1E9F #2928D2 #5958DF

Accessibility & contrast

On white

12.04
#1F1E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1F1E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1E9F
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1E9F#FFFFFF#000000##FFFFFF
##1F1E9F1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00309D
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f1e9f;
/* rgb */ color: rgb(31, 30, 159);
/* oklch */ color: oklch(35.4% 0.196 270.7);
Tailwind
colors: {
  custom: {
    50: '#745dbd',
    500: '#1f1e9f',
    950: '#000000',
  },
}
SCSS
$custom: #1f1e9f;
$custom-light: #745dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1e9f",
  "rgb": {
    "r": 31,
    "g": 30,
    "b": 159
  },
  "hsl": {
    "h": 240.465,
    "s": 68.254,
    "l": 37.059
  },
  "oklch": {
    "l": 0.35361,
    "c": 0.19614,
    "h": 270.7
  },
  "luminance": 0.03723
}

Semantic roles & 50–950 ramp

primary
#1F1E9F
secondary
#C2C356
accent
#EB3DEA
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F1E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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