#1F1476#1F1476

#1F1476 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.2% C 0.155 H 276.0°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#1F1476
RGBrgb(31, 20, 118)
HSLhsl(247, 71%, 27%)
HSVhsv(247, 83%, 46%)
CMYKcmyk(73.7%, 83.1%, 0%, 53.7%)
CIE-LABlab(16.00, 37.20, -53.21)
CIE-LCHlch(16.00, 64.92, 304.96°)
OKLaboklab(29.23% 0.0161 -0.1538)
OKLCHoklch(29.23% 0.155 276)
XYZxyz(4.0842, 2.0992, 17.3260)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1476 #6B7614
analogous
#143A76 #1F1476 #501476
triadic
#1F1476 #761F14 #14761F
tetradic
#1F1476 #76143A #6B7614 #147650
square
#1F1476 #76143A #6B7614 #147650
split-complementary
#1F1476 #765014 #3A7614
monochromatic
#07041A #110B42 #1F1476 #2D1DAA #3D2ADB

Accessibility & contrast

On white

14.79
#1F1476 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1F1476 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1476
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1476#FFFFFF#000000##FFFFFF
##1F14761.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002374
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f1476;
/* rgb */ color: rgb(31, 20, 118);
/* oklch */ color: oklch(29.2% 0.155 276.0);
Tailwind
colors: {
  custom: {
    50: '#6a559f',
    500: '#1f1476',
    950: '#000000',
  },
}
SCSS
$custom: #1f1476;
$custom-light: #6a559f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1476",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 118
  },
  "hsl": {
    "h": 246.735,
    "s": 71.014,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29233,
    "c": 0.15465,
    "h": 276
  },
  "luminance": 0.021
}

Semantic roles & 50–950 ramp

primary
#1F1476
secondary
#9FAC3A
accent
#EE3ADA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030F
muted
#7A787E

Preview Lab

Preview with #1F1476

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

Preview Lab → · Contrast checker → · Palette generator →

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