#1F1373#1F1373

#1F1373 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.8% C 0.152 H 276.6°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#1F1373
RGBrgb(31, 19, 115)
HSLhsl(248, 72%, 26%)
HSVhsv(248, 83%, 45%)
CMYKcmyk(73%, 83.5%, 0%, 54.9%)
CIE-LABlab(15.46, 36.73, -52.17)
CIE-LCHlch(15.46, 63.80, 305.15°)
OKLaboklab(28.75% 0.0175 -0.1508)
OKLCHoklch(28.75% 0.152 276.6)
XYZxyz(3.8914, 1.9945, 16.3962)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1373 #677313
analogous
#133773 #1F1373 #4F1373
triadic
#1F1373 #731F13 #13731F
tetradic
#1F1373 #731337 #677313 #13734F
square
#1F1373 #731337 #677313 #13734F
split-complementary
#1F1373 #734F13 #377313
monochromatic
#07041A #110A3E #1F1373 #2D1CA8 #3C25DB

Accessibility & contrast

On white

15.01
#1F1373 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#1F1373 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1373
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1373#FFFFFF#000000##FFFFFF
##1F13731.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B76
Deuteranopia (green-blind)
#002271
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f1373;
/* rgb */ color: rgb(31, 19, 115);
/* oklch */ color: oklch(28.8% 0.152 276.6);
Tailwind
colors: {
  custom: {
    50: '#6a549c',
    500: '#1f1373',
    950: '#000000',
  },
}
SCSS
$custom: #1f1373;
$custom-light: #6a549c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1373",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 115
  },
  "hsl": {
    "h": 247.5,
    "s": 71.642,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28751,
    "c": 0.15178,
    "h": 276.6
  },
  "luminance": 0.01995
}

Semantic roles & 50–950 ramp

primary
#1F1373
secondary
#9BAA38
accent
#EE39D8
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1373

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

Preview Lab → · Contrast checker → · Palette generator →

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