#1F1374#1F1374

#1F1374 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.9% C 0.153 H 276.4°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#1F1374
RGBrgb(31, 19, 116)
HSLhsl(247, 72%, 26%)
HSVhsv(247, 84%, 45%)
CMYKcmyk(73.3%, 83.6%, 0%, 54.5%)
CIE-LABlab(15.58, 37.06, -52.61)
CIE-LCHlch(15.58, 64.36, 305.16°)
OKLaboklab(28.87% 0.0172 -0.1521)
OKLCHoklch(28.87% 0.153 276.4)
XYZxyz(3.9493, 2.0176, 16.7009)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1374 #687413
analogous
#133874 #1F1374 #501374
triadic
#1F1374 #741F13 #13741F
tetradic
#1F1374 #741338 #687413 #137450
square
#1F1374 #741338 #687413 #137450
split-complementary
#1F1374 #745013 #387413
monochromatic
#07041A #110A3F #1F1374 #2D1CA9 #3C26DB

Accessibility & contrast

On white

14.96
#1F1374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1374
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1374#FFFFFF#000000##FFFFFF
##1F13741.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B77
Deuteranopia (green-blind)
#002372
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f1374;
/* rgb */ color: rgb(31, 19, 116);
/* oklch */ color: oklch(28.9% 0.153 276.4);
Tailwind
colors: {
  custom: {
    50: '#6a549d',
    500: '#1f1374',
    950: '#000000',
  },
}
SCSS
$custom: #1f1374;
$custom-light: #6a549d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1374",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 116
  },
  "hsl": {
    "h": 247.423,
    "s": 71.852,
    "l": 26.471
  },
  "oklch": {
    "l": 0.2887,
    "c": 0.15302,
    "h": 276.4
  },
  "luminance": 0.02018
}

Semantic roles & 50–950 ramp

primary
#1F1374
secondary
#9CAA38
accent
#EF39D8
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1374

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

Preview Lab → · Contrast checker → · Palette generator →

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