#1F1372#1F1372

#1F1372 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.151 H 276.8°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#1F1372
RGBrgb(31, 19, 114)
HSLhsl(248, 71%, 26%)
HSVhsv(248, 83%, 45%)
CMYKcmyk(72.8%, 83.3%, 0%, 55.3%)
CIE-LABlab(15.34, 36.41, -51.72)
CIE-LCHlch(15.34, 63.25, 305.14°)
OKLaboklab(28.63% 0.0177 -0.1495)
OKLCHoklch(28.63% 0.151 276.8)
XYZxyz(3.8342, 1.9716, 16.0948)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1372 #667213
analogous
#133672 #1F1372 #4E1372
triadic
#1F1372 #721F13 #13721F
tetradic
#1F1372 #721336 #667213 #13724E
square
#1F1372 #721336 #667213 #13724E
split-complementary
#1F1372 #724E13 #367213
monochromatic
#07041A #110A3E #1F1372 #2D1CA6 #3C25DB

Accessibility & contrast

On white

15.06
#1F1372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1F1372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1372
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1372#FFFFFF#000000##FFFFFF
##1F13721.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A75
Deuteranopia (green-blind)
#002270
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f1372;
/* rgb */ color: rgb(31, 19, 114);
/* oklch */ color: oklch(28.6% 0.151 276.8);
Tailwind
colors: {
  custom: {
    50: '#69549c',
    500: '#1f1372',
    950: '#000000',
  },
}
SCSS
$custom: #1f1372;
$custom-light: #69549c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1372",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 247.579,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28631,
    "c": 0.15052,
    "h": 276.8
  },
  "luminance": 0.01972
}

Semantic roles & 50–950 ramp

primary
#1F1372
secondary
#9AA938
accent
#EE3AD7
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1372

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

Preview Lab → · Contrast checker → · Palette generator →

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