#1F1679#1F1679

#1F1679 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.157 H 275.3°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#1F1679
RGBrgb(31, 22, 121)
HSLhsl(245, 69%, 28%)
HSVhsv(245, 82%, 47%)
CMYKcmyk(74.4%, 81.8%, 0%, 52.5%)
CIE-LABlab(16.72, 37.13, -53.93)
CIE-LCHlch(16.72, 65.48, 304.55°)
OKLaboklab(29.84% 0.0144 -0.1559)
OKLCHoklch(29.84% 0.157 275.3)
XYZxyz(4.3020, 2.2452, 18.2921)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1679 #707916
analogous
#163E79 #1F1679 #511679
triadic
#1F1679 #791F16 #16791F
tetradic
#1F1679 #79163E #707916 #167951
square
#1F1679 #79163E #707916 #167951
split-complementary
#1F1679 #795116 #3E7916
monochromatic
#07051A #120D45 #1F1679 #2C1FAD #3F30D9

Accessibility & contrast

On white

14.49
#1F1679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1F1679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1679
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1679#FFFFFF#000000##FFFFFF
##1F16791.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1679;
/* rgb */ color: rgb(31, 22, 121);
/* oklch */ color: oklch(29.8% 0.157 275.3);
Tailwind
colors: {
  custom: {
    50: '#6b56a1',
    500: '#1f1679',
    950: '#000000',
  },
}
SCSS
$custom: #1f1679;
$custom-light: #6b56a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1679",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 121
  },
  "hsl": {
    "h": 245.455,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29844,
    "c": 0.15661,
    "h": 275.3
  },
  "luminance": 0.02246
}

Semantic roles & 50–950 ramp

primary
#1F1679
secondary
#A4AE3D
accent
#EC3CDC
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1F1679

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

Preview Lab → · Contrast checker → · Palette generator →

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