#1F1579#1F1579

#1F1579 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.158 H 275.4°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#1F1579
RGBrgb(31, 21, 121)
HSLhsl(246, 70%, 28%)
HSVhsv(246, 83%, 47%)
CMYKcmyk(74.4%, 82.6%, 0%, 52.5%)
CIE-LABlab(16.54, 37.67, -54.24)
CIE-LCHlch(16.54, 66.03, 304.78°)
OKLaboklab(29.72% 0.0148 -0.1568)
OKLCHoklch(29.72% 0.158 275.4)
XYZxyz(4.2833, 2.2077, 18.2858)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1579 #6F7915
analogous
#153D79 #1F1579 #511579
triadic
#1F1579 #791F15 #15791F
tetradic
#1F1579 #79153D #6F7915 #157951
square
#1F1579 #79153D #6F7915 #157951
split-complementary
#1F1579 #795115 #3D7915
monochromatic
#07051A #120C45 #1F1579 #2C1EAD #3F2EDB

Accessibility & contrast

On white

14.57
#1F1579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1579
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1579#FFFFFF#000000##FFFFFF
##1F15791.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7C
Deuteranopia (green-blind)
#002477
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f1579;
/* rgb */ color: rgb(31, 21, 121);
/* oklch */ color: oklch(29.7% 0.158 275.4);
Tailwind
colors: {
  custom: {
    50: '#6b55a1',
    500: '#1f1579',
    950: '#000000',
  },
}
SCSS
$custom: #1f1579;
$custom-light: #6b55a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1579",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 246,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29716,
    "c": 0.15752,
    "h": 275.4
  },
  "luminance": 0.02208
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F1579

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

Preview Lab → · Contrast checker → · Palette generator →

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