#1F1876#1F1876

#1F1876 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.151 H 275.4°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#1F1876
RGBrgb(31, 24, 118)
HSLhsl(244, 66%, 28%)
HSVhsv(244, 80%, 46%)
CMYKcmyk(73.7%, 79.7%, 0%, 53.7%)
CIE-LABlab(16.76, 35.01, -51.95)
CIE-LCHlch(16.76, 62.65, 303.98°)
OKLaboklab(29.76% 0.0142 -0.1502)
OKLCHoklch(29.76% 0.151 275.4)
XYZxyz(4.1606, 2.2522, 17.3515)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1876 #6F7618
analogous
#184076 #1F1876 #4E1876
triadic
#1F1876 #761F18 #18761F
tetradic
#1F1876 #761840 #6F7618 #18764E
square
#1F1876 #761840 #6F7618 #18764E
split-complementary
#1F1876 #764E18 #407618
monochromatic
#070519 #120E43 #1F1876 #2C22A9 #3F33D5

Accessibility & contrast

On white

14.48
#1F1876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1876
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1876#FFFFFF#000000##FFFFFF
##1F18761.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002574
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f1876;
/* rgb */ color: rgb(31, 24, 118);
/* oklch */ color: oklch(29.8% 0.151 275.4);
Tailwind
colors: {
  custom: {
    50: '#6a579f',
    500: '#1f1876',
    950: '#000000',
  },
}
SCSS
$custom: #1f1876;
$custom-light: #6a579f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1876",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 244.468,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29764,
    "c": 0.15088,
    "h": 275.4
  },
  "luminance": 0.02253
}

Semantic roles & 50–950 ramp

primary
#1F1876
secondary
#A3AB3F
accent
#E93FDC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #1F1876

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

Preview Lab → · Contrast checker → · Palette generator →

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