#1F1367#1F1367

#1F1367 is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.3% C 0.136 H 278.8°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#1F1367
RGBrgb(31, 19, 103)
HSLhsl(249, 69%, 24%)
HSVhsv(249, 82%, 40%)
CMYKcmyk(69.9%, 81.6%, 0%, 59.6%)
CIE-LABlab(14.04, 32.74, -46.68)
CIE-LCHlch(14.04, 57.02, 305.05°)
OKLaboklab(27.34% 0.021 -0.1348)
OKLCHoklch(27.34% 0.136 278.8)
XYZxyz(3.2453, 1.7361, 12.9934)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1367 #5B6713
analogous
#133167 #1F1367 #491367
triadic
#1F1367 #671F13 #13671F
tetradic
#1F1367 #671331 #5B6713 #136749
square
#1F1367 #671331 #5B6713 #136749
split-complementary
#1F1367 #674913 #316713
monochromatic
#08051A #0F0933 #1F1367 #2F1D9B #3E26CE

Accessibility & contrast

On white

15.59
#1F1367 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#1F1367 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1367
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1367#FFFFFF#000000##FFFFFF
##1F13671.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002769
Deuteranopia (green-blind)
#002066
Tritanopia (blue-blind)
#002C3C
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1f1367;
/* rgb */ color: rgb(31, 19, 103);
/* oklch */ color: oklch(27.3% 0.136 278.8);
Tailwind
colors: {
  custom: {
    50: '#675393',
    500: '#1f1367',
    950: '#000000',
  },
}
SCSS
$custom: #1f1367;
$custom-light: #675393;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1367",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 103
  },
  "hsl": {
    "h": 248.571,
    "s": 68.852,
    "l": 23.922
  },
  "oklch": {
    "l": 0.27339,
    "c": 0.13643,
    "h": 278.8
  },
  "luminance": 0.01736
}

Semantic roles & 50–950 ramp

primary
#1F1367
secondary
#909E37
accent
#EC3CD3
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1F1367

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

Preview Lab → · Contrast checker → · Palette generator →

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