#1F1577#1F1577

#1F1577 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.155 H 275.7°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#1F1577
RGBrgb(31, 21, 119)
HSLhsl(246, 70%, 27%)
HSVhsv(246, 82%, 47%)
CMYKcmyk(73.9%, 82.4%, 0%, 53.3%)
CIE-LABlab(16.30, 37.00, -53.35)
CIE-LCHlch(16.30, 64.93, 304.75°)
OKLaboklab(29.48% 0.0154 -0.1542)
OKLCHoklch(29.48% 0.155 275.7)
XYZxyz(4.1619, 2.1591, 17.6466)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1577 #6D7715
analogous
#153C77 #1F1577 #501577
triadic
#1F1577 #771F15 #15771F
tetradic
#1F1577 #77153C #6D7715 #157750
square
#1F1577 #77153C #6D7715 #157750
split-complementary
#1F1577 #775015 #3C7715
monochromatic
#07051A #110C43 #1F1577 #2D1EAB #3E2DDA

Accessibility & contrast

On white

14.66
#1F1577 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1577
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1577#FFFFFF#000000##FFFFFF
##1F15771.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7A
Deuteranopia (green-blind)
#002475
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f1577;
/* rgb */ color: rgb(31, 21, 119);
/* oklch */ color: oklch(29.5% 0.155 275.7);
Tailwind
colors: {
  custom: {
    50: '#6a559f',
    500: '#1f1577',
    950: '#000000',
  },
}
SCSS
$custom: #1f1577;
$custom-light: #6a559f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1577",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 119
  },
  "hsl": {
    "h": 246.122,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29478,
    "c": 0.155,
    "h": 275.7
  },
  "luminance": 0.0216
}

Semantic roles & 50–950 ramp

primary
#1F1577
secondary
#A1AD3B
accent
#ED3BDB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030F
muted
#7A787E

Preview Lab

Preview with #1F1577

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

Preview Lab → · Contrast checker → · Palette generator →

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