#1F1E97#1F1E97

#1F1E97 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.187 H 271.3°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#1F1E97
RGBrgb(31, 30, 151)
HSLhsl(240, 67%, 35%)
HSVhsv(240, 80%, 59%)
CMYKcmyk(79.5%, 80.1%, 0%, 40.8%)
CIE-LABlab(21.78, 42.83, -64.42)
CIE-LCHlch(21.78, 77.35, 303.62°)
OKLaboklab(34.42% 0.0042 -0.1865)
OKLCHoklch(34.42% 0.187 271.3)
XYZxyz(6.6134, 3.4535, 29.5902)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1E97 #96971E
analogous
#1E5997 #1F1E97 #5B1E97
triadic
#1F1E97 #971F1E #1E971F
tetradic
#1F1E97 #971E59 #96971E #1E975B
square
#1F1E97 #971E59 #96971E #1E975B
split-complementary
#1F1E97 #975B1E #59971E
monochromatic
#0A0A31 #151464 #1F1E97 #2928CA #5453DD

Accessibility & contrast

On white

12.42
#1F1E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F1E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1E97
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1E97#FFFFFF#000000##FFFFFF
##1F1E971.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#002E95
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f1e97;
/* rgb */ color: rgb(31, 30, 151);
/* oklch */ color: oklch(34.4% 0.187 271.3);
Tailwind
colors: {
  custom: {
    50: '#725cb7',
    500: '#1f1e97',
    950: '#000000',
  },
}
SCSS
$custom: #1f1e97;
$custom-light: #725cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1e97",
  "rgb": {
    "r": 31,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 240.496,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34416,
    "c": 0.18654,
    "h": 271.3
  },
  "luminance": 0.03454
}

Semantic roles & 50–950 ramp

primary
#1F1E97
secondary
#BFC051
accent
#EA3EE8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1E97

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

Preview Lab → · Contrast checker → · Palette generator →

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