#1F1879#1F1879

#1F1879 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.155 H 275.0°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#1F1879
RGBrgb(31, 24, 121)
HSLhsl(244, 67%, 28%)
HSVhsv(244, 80%, 47%)
CMYKcmyk(74.4%, 80.2%, 0%, 52.5%)
CIE-LABlab(17.11, 36.04, -53.30)
CIE-LCHlch(17.11, 64.34, 304.06°)
OKLaboklab(30.11% 0.0134 -0.1541)
OKLCHoklch(30.11% 0.155 275)
XYZxyz(4.3418, 2.3246, 18.3053)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1879 #727918
analogous
#184179 #1F1879 #4F1879
triadic
#1F1879 #791F18 #18791F
tetradic
#1F1879 #791841 #727918 #18794F
square
#1F1879 #791841 #727918 #18794F
split-complementary
#1F1879 #794F18 #417918
monochromatic
#07051A #120E46 #1F1879 #2C22AC #4035D7

Accessibility & contrast

On white

14.33
#1F1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1F1879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1879
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1879#FFFFFF#000000##FFFFFF
##1F18791.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1879;
/* rgb */ color: rgb(31, 24, 121);
/* oklch */ color: oklch(30.1% 0.155 275.0);
Tailwind
colors: {
  custom: {
    50: '#6b57a1',
    500: '#1f1879',
    950: '#000000',
  },
}
SCSS
$custom: #1f1879;
$custom-light: #6b57a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1879",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 244.33,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30111,
    "c": 0.15473,
    "h": 275
  },
  "luminance": 0.02325
}

Semantic roles & 50–950 ramp

primary
#1F1879
secondary
#A6AE3F
accent
#EA3EDD
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1F1879

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

Preview Lab → · Contrast checker → · Palette generator →

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