#1F1578#1F1578

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

Color values

HEX#1F1578
RGBrgb(31, 21, 120)
HSLhsl(246, 70%, 28%)
HSVhsv(246, 83%, 47%)
CMYKcmyk(74.2%, 82.5%, 0%, 52.9%)
CIE-LABlab(16.42, 37.34, -53.80)
CIE-LCHlch(16.42, 65.48, 304.76°)
OKLaboklab(29.6% 0.0151 -0.1555)
OKLCHoklch(29.6% 0.156 275.5)
XYZxyz(4.2223, 2.1833, 17.9646)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1578 #6E7815
analogous
#153C78 #1F1578 #511578
triadic
#1F1578 #781F15 #15781F
tetradic
#1F1578 #78153C #6E7815 #157851
square
#1F1578 #78153C #6E7815 #157851
split-complementary
#1F1578 #785115 #3C7815
monochromatic
#07051A #120C44 #1F1578 #2C1EAC #3F2DDA

Accessibility & contrast

On white

14.62
#1F1578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1F1578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1578
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1578#FFFFFF#000000##FFFFFF
##1F15781.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1578;
/* rgb */ color: rgb(31, 21, 120);
/* oklch */ color: oklch(29.6% 0.156 275.5);
Tailwind
colors: {
  custom: {
    50: '#6b55a0',
    500: '#1f1578',
    950: '#000000',
  },
}
SCSS
$custom: #1f1578;
$custom-light: #6b55a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1578",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 246.061,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29597,
    "c": 0.15626,
    "h": 275.5
  },
  "luminance": 0.02184
}

Semantic roles & 50–950 ramp

primary
#1F1578
secondary
#A2AE3B
accent
#ED3BDB
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1F1578

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

Preview Lab → · Contrast checker → · Palette generator →

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