#1F1877#1F1877

#1F1877 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.152 H 275.3°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#1F1877
RGBrgb(31, 24, 119)
HSLhsl(244, 66%, 28%)
HSVhsv(244, 80%, 47%)
CMYKcmyk(73.9%, 79.8%, 0%, 53.3%)
CIE-LABlab(16.87, 35.36, -52.40)
CIE-LCHlch(16.87, 63.22, 304.01°)
OKLaboklab(29.88% 0.0139 -0.1515)
OKLCHoklch(29.88% 0.152 275.3)
XYZxyz(4.2204, 2.2761, 17.6661)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1877 #707718
analogous
#184077 #1F1877 #4E1877
triadic
#1F1877 #771F18 #18771F
tetradic
#1F1877 #771840 #707718 #18774E
square
#1F1877 #771840 #707718 #18774E
split-complementary
#1F1877 #774E18 #407718
monochromatic
#070519 #120E44 #1F1877 #2C22AA #3F33D6

Accessibility & contrast

On white

14.43
#1F1877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1877
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1877#FFFFFF#000000##FFFFFF
##1F18771.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002575
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f1877;
/* rgb */ color: rgb(31, 24, 119);
/* oklch */ color: oklch(29.9% 0.152 275.3);
Tailwind
colors: {
  custom: {
    50: '#6a579f',
    500: '#1f1877',
    950: '#000000',
  },
}
SCSS
$custom: #1f1877;
$custom-light: #6a579f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1877",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 244.421,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29879,
    "c": 0.15217,
    "h": 275.3
  },
  "luminance": 0.02276
}

Semantic roles & 50–950 ramp

primary
#1F1877
secondary
#A4AC3F
accent
#E93EDD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #1F1877

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

Preview Lab → · Contrast checker → · Palette generator →

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