#1F1971#1F1971

#1F1971 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.3% C 0.143 H 275.9°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#1F1971
RGBrgb(31, 25, 113)
HSLhsl(244, 64%, 27%)
HSVhsv(244, 78%, 44%)
CMYKcmyk(72.6%, 77.9%, 0%, 55.7%)
CIE-LABlab(16.40, 32.70, -49.32)
CIE-LCHlch(16.40, 59.17, 303.55°)
OKLaboklab(29.34% 0.0148 -0.1426)
OKLCHoklch(29.34% 0.143 275.9)
XYZxyz(3.8924, 2.1785, 15.8349)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1971 #6B7119
analogous
#193F71 #1F1971 #4B1971
triadic
#1F1971 #711F19 #19711F
tetradic
#1F1971 #71193F #6B7119 #19714B
square
#1F1971 #71193F #6B7119 #19714B
split-complementary
#1F1971 #714B19 #3F7119
monochromatic
#070619 #110E3F #1F1971 #2D24A3 #3D33D2

Accessibility & contrast

On white

14.63
#1F1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1F1971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1971
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1971#FFFFFF#000000##FFFFFF
##1F19711.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00256F
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f1971;
/* rgb */ color: rgb(31, 25, 113);
/* oklch */ color: oklch(29.3% 0.143 275.9);
Tailwind
colors: {
  custom: {
    50: '#68579b',
    500: '#1f1971',
    950: '#000000',
  },
}
SCSS
$custom: #1f1971;
$custom-light: #68579b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1971",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 244.091,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.2934,
    "c": 0.14333,
    "h": 275.9
  },
  "luminance": 0.02179
}

Semantic roles & 50–950 ramp

primary
#1F1971
secondary
#9FA640
accent
#E741DB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1971

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

Preview Lab → · Contrast checker → · Palette generator →

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