#1F1F92#1F1F92

#1F1F92 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.180 H 271.6°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#1F1F92
RGBrgb(31, 31, 146)
HSLhsl(240, 65%, 35%)
HSVhsv(240, 79%, 57%)
CMYKcmyk(78.8%, 78.8%, 0%, 42.7%)
CIE-LABlab(21.38, 40.61, -61.98)
CIE-LCHlch(21.38, 74.10, 303.23°)
OKLaboklab(33.97% 0.0049 -0.1794)
OKLCHoklch(33.97% 0.18 271.6)
XYZxyz(6.2416, 3.3459, 27.5054)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1F92 #92921F
analogous
#1F5992 #1F1F92 #591F92
triadic
#1F1F92 #921F1F #1F921F
tetradic
#1F1F92 #921F59 #92921F #1F9259
square
#1F1F92 #921F59 #92921F #1F9259
split-complementary
#1F1F92 #92591F #59921F
monochromatic
#0A0A2D #141460 #1F1F92 #2A2AC4 #5151DA

Accessibility & contrast

On white

12.58
#1F1F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1F1F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1F92
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1F92#FFFFFF#000000##FFFFFF
##1F1F921.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003995
Deuteranopia (green-blind)
#002D90
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f1f92;
/* rgb */ color: rgb(31, 31, 146);
/* oklch */ color: oklch(34.0% 0.180 271.6);
Tailwind
colors: {
  custom: {
    50: '#705db3',
    500: '#1f1f92',
    950: '#000000',
  },
}
SCSS
$custom: #1f1f92;
$custom-light: #705db3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1f92",
  "rgb": {
    "r": 31,
    "g": 31,
    "b": 146
  },
  "hsl": {
    "h": 240,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.33967,
    "c": 0.17951,
    "h": 271.6
  },
  "luminance": 0.03347
}

Semantic roles & 50–950 ramp

primary
#1F1F92
secondary
#BDBD50
accent
#E840E8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1F92

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

Preview Lab → · Contrast checker → · Palette generator →

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