#1F1D79#1F1D79

#1F1D79 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.8% C 0.150 H 274.1°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#1F1D79
RGBrgb(31, 29, 121)
HSLhsl(241, 61%, 29%)
HSVhsv(241, 76%, 47%)
CMYKcmyk(74.4%, 76%, 0%, 52.5%)
CIE-LABlab(18.14, 33.10, -51.59)
CIE-LCHlch(18.14, 61.30, 302.68°)
OKLaboklab(30.84% 0.0108 -0.1492)
OKLCHoklch(30.84% 0.15 274.1)
XYZxyz(4.4545, 2.5501, 18.3429)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1D79 #77791D
analogous
#1D4979 #1F1D79 #4D1D79
triadic
#1F1D79 #791F1D #1D791F
tetradic
#1F1D79 #791D49 #77791D #1D794D
square
#1F1D79 #791D49 #77791D #1D794D
split-complementary
#1F1D79 #794D1D #49791D
monochromatic
#060619 #121148 #1F1D79 #2C29AA #433FD1

Accessibility & contrast

On white

13.91
#1F1D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1F1D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1D79
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1D79#FFFFFF#000000##FFFFFF
##1F1D791.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002877
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f1d79;
/* rgb */ color: rgb(31, 29, 121);
/* oklch */ color: oklch(30.8% 0.150 274.1);
Tailwind
colors: {
  custom: {
    50: '#6a5aa1',
    500: '#1f1d79',
    950: '#000000',
  },
}
SCSS
$custom: #1f1d79;
$custom-light: #6a5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1d79",
  "rgb": {
    "r": 31,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 241.304,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30844,
    "c": 0.1496,
    "h": 274.1
  },
  "luminance": 0.02551
}

Semantic roles & 50–950 ramp

primary
#1F1D79
secondary
#ABAD45
accent
#E443E1
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1F1D79

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

Preview Lab → · Contrast checker → · Palette generator →

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