#1F1771#1F1771

#1F1771 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.145 H 276.3°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#1F1771
RGBrgb(31, 23, 113)
HSLhsl(245, 66%, 27%)
HSVhsv(245, 80%, 44%)
CMYKcmyk(72.6%, 79.6%, 0%, 55.7%)
CIE-LABlab(15.98, 33.87, -50.00)
CIE-LCHlch(15.98, 60.40, 304.12°)
OKLaboklab(29.05% 0.016 -0.1445)
OKLCHoklch(29.05% 0.145 276.3)
XYZxyz(3.8511, 2.0960, 15.8212)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1771 #697117
analogous
#173C71 #1F1771 #4C1771
triadic
#1F1771 #711F17 #17711F
tetradic
#1F1771 #71173C #697117 #17714C
square
#1F1771 #71173C #697117 #17714C
split-complementary
#1F1771 #714C17 #3C7117
monochromatic
#070519 #110D3E #1F1771 #2D21A4 #3D2ED4

Accessibility & contrast

On white

14.80
#1F1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1F1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1771
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1771#FFFFFF#000000##FFFFFF
##1F17711.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1771;
/* rgb */ color: rgb(31, 23, 113);
/* oklch */ color: oklch(29.0% 0.145 276.3);
Tailwind
colors: {
  custom: {
    50: '#69569b',
    500: '#1f1771',
    950: '#000000',
  },
}
SCSS
$custom: #1f1771;
$custom-light: #69569b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1771",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 245.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29048,
    "c": 0.14541,
    "h": 276.3
  },
  "luminance": 0.02096
}

Semantic roles & 50–950 ramp

primary
#1F1771
secondary
#9DA73D
accent
#E93FDA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1771

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

Preview Lab → · Contrast checker → · Palette generator →

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