#1F1479#1F1479

#1F1479 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.158 H 275.5°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#1F1479
RGBrgb(31, 20, 121)
HSLhsl(247, 72%, 28%)
HSVhsv(247, 83%, 47%)
CMYKcmyk(74.4%, 83.5%, 0%, 52.5%)
CIE-LABlab(16.36, 38.18, -54.53)
CIE-LCHlch(16.36, 66.57, 305.00°)
OKLaboklab(29.59% 0.0153 -0.1577)
OKLCHoklch(29.59% 0.158 275.5)
XYZxyz(4.2653, 2.1717, 18.2798)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1479 #6E7914
analogous
#143B79 #1F1479 #521479
triadic
#1F1479 #791F14 #14791F
tetradic
#1F1479 #79143B #6E7914 #147952
square
#1F1479 #79143B #6E7914 #147952
split-complementary
#1F1479 #795214 #3B7914
monochromatic
#07041A #120B44 #1F1479 #2C1DAE #3F2BDC

Accessibility & contrast

On white

14.64
#1F1479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1479
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1479#FFFFFF#000000##FFFFFF
##1F14791.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1479;
/* rgb */ color: rgb(31, 20, 121);
/* oklch */ color: oklch(29.6% 0.158 275.5);
Tailwind
colors: {
  custom: {
    50: '#6b55a1',
    500: '#1f1479',
    950: '#000000',
  },
}
SCSS
$custom: #1f1479;
$custom-light: #6b55a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1479",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 121
  },
  "hsl": {
    "h": 246.535,
    "s": 71.631,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29592,
    "c": 0.1584,
    "h": 275.5
  },
  "luminance": 0.02172
}

Semantic roles & 50–950 ramp

primary
#1F1479
secondary
#A2AF3A
accent
#EE39DB
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1F1479

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

Preview Lab → · Contrast checker → · Palette generator →

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