#1F1996#1F1996

#1F1996 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.189 H 271.8°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#1F1996
RGBrgb(31, 25, 150)
HSLhsl(243, 71%, 34%)
HSVhsv(243, 83%, 59%)
CMYKcmyk(79.3%, 83.3%, 0%, 41.2%)
CIE-LABlab(20.78, 45.04, -65.45)
CIE-LCHlch(20.78, 79.45, 304.54°)
OKLaboklab(33.69% 0.0059 -0.1894)
OKLCHoklch(33.69% 0.189 271.8)
XYZxyz(6.4159, 3.1879, 29.1254)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1996 #909619
analogous
#195296 #1F1996 #5E1996
triadic
#1F1996 #961F19 #19961F
tetradic
#1F1996 #961952 #909619 #19965E
square
#1F1996 #961952 #909619 #19965E
split-complementary
#1F1996 #965E19 #529619
monochromatic
#09082D #141062 #1F1996 #2A22CA #5049E1

Accessibility & contrast

On white

12.82
#1F1996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1F1996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1996
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1996#FFFFFF#000000##FFFFFF
##1F19961.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003899
Deuteranopia (green-blind)
#002C94
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f1996;
/* rgb */ color: rgb(31, 25, 150);
/* oklch */ color: oklch(33.7% 0.189 271.8);
Tailwind
colors: {
  custom: {
    50: '#725ab6',
    500: '#1f1996',
    950: '#000000',
  },
}
SCSS
$custom: #1f1996;
$custom-light: #725ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1996",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 242.88,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.33689,
    "c": 0.18948,
    "h": 271.8
  },
  "luminance": 0.03189
}

Semantic roles & 50–950 ramp

primary
#1F1996
secondary
#BCC249
accent
#EE3AE6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1996

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

Preview Lab → · Contrast checker → · Palette generator →

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