#1F1871#1F1871

#1F1871 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.2% C 0.144 H 276.1°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#1F1871
RGBrgb(31, 24, 113)
HSLhsl(245, 65%, 27%)
HSVhsv(245, 79%, 44%)
CMYKcmyk(72.6%, 78.8%, 0%, 55.7%)
CIE-LABlab(16.19, 33.29, -49.66)
CIE-LCHlch(16.19, 59.79, 303.84°)
OKLaboklab(29.19% 0.0154 -0.1436)
OKLCHoklch(29.19% 0.144 276.1)
XYZxyz(3.8714, 2.1365, 15.8279)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1871 #6A7118
analogous
#183E71 #1F1871 #4C1871
triadic
#1F1871 #711F18 #18711F
tetradic
#1F1871 #71183E #6A7118 #18714C
square
#1F1871 #71183E #6A7118 #18714C
split-complementary
#1F1871 #714C18 #3E7118
monochromatic
#070519 #110D3F #1F1871 #2D23A3 #3D30D3

Accessibility & contrast

On white

14.71
#1F1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1F1871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1871
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1871#FFFFFF#000000##FFFFFF
##1F18711.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f1871;
/* rgb */ color: rgb(31, 24, 113);
/* oklch */ color: oklch(29.2% 0.144 276.1);
Tailwind
colors: {
  custom: {
    50: '#69579b',
    500: '#1f1871',
    950: '#000000',
  },
}
SCSS
$custom: #1f1871;
$custom-light: #69579b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1871",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 244.719,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29192,
    "c": 0.14438,
    "h": 276.1
  },
  "luminance": 0.02137
}

Semantic roles & 50–950 ramp

primary
#1F1871
secondary
#9EA63E
accent
#E840DB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1871

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

Preview Lab → · Contrast checker → · Palette generator →

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