#1F1576#1F1576

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

Color values

HEX#1F1576
RGBrgb(31, 21, 118)
HSLhsl(246, 70%, 27%)
HSVhsv(246, 82%, 46%)
CMYKcmyk(73.7%, 82.2%, 0%, 53.7%)
CIE-LABlab(16.18, 36.67, -52.91)
CIE-LCHlch(16.18, 64.37, 304.73°)
OKLaboklab(29.36% 0.0157 -0.1529)
OKLCHoklch(29.36% 0.154 275.8)
XYZxyz(4.1022, 2.1353, 17.3320)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1576 #6C7615
analogous
#153B76 #1F1576 #501576
triadic
#1F1576 #761F15 #15761F
tetradic
#1F1576 #76153B #6C7615 #157650
square
#1F1576 #76153B #6C7615 #157650
split-complementary
#1F1576 #765015 #3B7615
monochromatic
#07051A #110C42 #1F1576 #2D1EAA #3E2CD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F1576#FFFFFF#000000##FFFFFF
##1F15761.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)
#002C79
Deuteranopia (green-blind)
#002474
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f1576;
/* rgb */ color: rgb(31, 21, 118);
/* oklch */ color: oklch(29.4% 0.154 275.8);
Tailwind
colors: {
  custom: {
    50: '#6a559f',
    500: '#1f1576',
    950: '#000000',
  },
}
SCSS
$custom: #1f1576;
$custom-light: #6a559f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1576",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 246.186,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.2936,
    "c": 0.15375,
    "h": 275.8
  },
  "luminance": 0.02136
}

Semantic roles & 50–950 ramp

primary
#1F1576
secondary
#A0AC3B
accent
#ED3BDA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030F
muted
#7A787E

Preview Lab

Preview with #1F1576

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

Preview Lab → · Contrast checker → · Palette generator →

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