#1F1379#1F1379

#1F1379 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.5% C 0.159 H 275.6°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#1F1379
RGBrgb(31, 19, 121)
HSLhsl(247, 73%, 27%)
HSVhsv(247, 84%, 47%)
CMYKcmyk(74.4%, 84.3%, 0%, 52.5%)
CIE-LABlab(16.19, 38.69, -54.82)
CIE-LCHlch(16.19, 67.09, 305.21°)
OKLaboklab(29.47% 0.0157 -0.1585)
OKLCHoklch(29.47% 0.159 275.6)
XYZxyz(4.2480, 2.1371, 18.2741)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1379 #6D7913
analogous
#133A79 #1F1379 #521379
triadic
#1F1379 #791F13 #13791F
tetradic
#1F1379 #79133A #6D7913 #137952
square
#1F1379 #79133A #6D7913 #137952
split-complementary
#1F1379 #795213 #3A7913
monochromatic
#07041A #110B44 #1F1379 #2D1BAE #3E29DD

Accessibility & contrast

On white

14.71
#1F1379 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1F1379 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1379
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1379#FFFFFF#000000##FFFFFF
##1F13791.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C7C
Deuteranopia (green-blind)
#002477
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f1379;
/* rgb */ color: rgb(31, 19, 121);
/* oklch */ color: oklch(29.5% 0.159 275.6);
Tailwind
colors: {
  custom: {
    50: '#6b54a1',
    500: '#1f1379',
    950: '#000000',
  },
}
SCSS
$custom: #1f1379;
$custom-light: #6b54a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1379",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 121
  },
  "hsl": {
    "h": 247.059,
    "s": 72.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29473,
    "c": 0.15924,
    "h": 275.6
  },
  "luminance": 0.02138
}

Semantic roles & 50–950 ramp

primary
#1F1379
secondary
#A1AF39
accent
#F038DA
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1F1379

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

Preview Lab → · Contrast checker → · Palette generator →

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