#1F1779#1F1779

#1F1779 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.156 H 275.1°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#1F1779
RGBrgb(31, 23, 121)
HSLhsl(245, 68%, 28%)
HSVhsv(245, 81%, 47%)
CMYKcmyk(74.4%, 81%, 0%, 52.5%)
CIE-LABlab(16.91, 36.59, -53.62)
CIE-LCHlch(16.91, 64.92, 304.31°)
OKLaboklab(29.98% 0.0139 -0.1551)
OKLCHoklch(29.98% 0.156 275.1)
XYZxyz(4.3215, 2.2842, 18.2986)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1779 #717917
analogous
#174079 #1F1779 #501779
triadic
#1F1779 #791F17 #17791F
tetradic
#1F1779 #791740 #717917 #177950
square
#1F1779 #791740 #717917 #177950
split-complementary
#1F1779 #795017 #407917
monochromatic
#07051A #120D46 #1F1779 #2C21AC #4032D8

Accessibility & contrast

On white

14.41
#1F1779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1F1779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1779
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1779#FFFFFF#000000##FFFFFF
##1F17791.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7C
Deuteranopia (green-blind)
#002577
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f1779;
/* rgb */ color: rgb(31, 23, 121);
/* oklch */ color: oklch(30.0% 0.156 275.1);
Tailwind
colors: {
  custom: {
    50: '#6b56a1',
    500: '#1f1779',
    950: '#000000',
  },
}
SCSS
$custom: #1f1779;
$custom-light: #6b56a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1779",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 244.898,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29975,
    "c": 0.15568,
    "h": 275.1
  },
  "luminance": 0.02285
}

Semantic roles & 50–950 ramp

primary
#1F1779
secondary
#A5AE3E
accent
#EB3DDD
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1F1779

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

Preview Lab → · Contrast checker → · Palette generator →

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