#1F1376#1F1376

#1F1376 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.156 H 276.1°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#1F1376
RGBrgb(31, 19, 118)
HSLhsl(247, 72%, 27%)
HSVhsv(247, 84%, 46%)
CMYKcmyk(73.7%, 83.9%, 0%, 53.7%)
CIE-LABlab(15.82, 37.71, -53.50)
CIE-LCHlch(15.82, 65.46, 305.18°)
OKLaboklab(29.11% 0.0166 -0.1546)
OKLCHoklch(29.11% 0.156 276.1)
XYZxyz(4.0669, 2.0647, 17.3202)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1376 #6A7613
analogous
#133976 #1F1376 #511376
triadic
#1F1376 #761F13 #13761F
tetradic
#1F1376 #761339 #6A7613 #137651
square
#1F1376 #761339 #6A7613 #137651
split-complementary
#1F1376 #765113 #397613
monochromatic
#07041A #110B41 #1F1376 #2D1BAB #3D27DC

Accessibility & contrast

On white

14.86
#1F1376 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#1F1376 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1376
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1376#FFFFFF#000000##FFFFFF
##1F13761.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1376;
/* rgb */ color: rgb(31, 19, 118);
/* oklch */ color: oklch(29.1% 0.156 276.1);
Tailwind
colors: {
  custom: {
    50: '#6a549f',
    500: '#1f1376',
    950: '#000000',
  },
}
SCSS
$custom: #1f1376;
$custom-light: #6a549f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1376",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 118
  },
  "hsl": {
    "h": 247.273,
    "s": 72.263,
    "l": 26.863
  },
  "oklch": {
    "l": 0.2911,
    "c": 0.15552,
    "h": 276.1
  },
  "luminance": 0.02065
}

Semantic roles & 50–950 ramp

primary
#1F1376
secondary
#9EAC39
accent
#EF39D9
background
#F6F5F9
surface
#ECE8F2
border
#C7C4CC
text
#08030F
muted
#7A787E

Preview Lab

Preview with #1F1376

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

Preview Lab → · Contrast checker → · Palette generator →

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