#1F1A71#1F1A71

#1F1A71 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.142 H 275.7°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#1F1A71
RGBrgb(31, 26, 113)
HSLhsl(243, 63%, 27%)
HSVhsv(243, 77%, 44%)
CMYKcmyk(72.6%, 77%, 0%, 55.7%)
CIE-LABlab(16.61, 32.10, -48.96)
CIE-LCHlch(16.61, 58.55, 303.24°)
OKLaboklab(29.49% 0.0142 -0.1415)
OKLCHoklch(29.49% 0.142 275.7)
XYZxyz(3.9141, 2.2220, 15.8422)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1A71 #6C711A
analogous
#1A4171 #1F1A71 #4A1A71
triadic
#1F1A71 #711F1A #1A711F
tetradic
#1F1A71 #711A41 #6C711A #1A714A
square
#1F1A71 #711A41 #6C711A #1A714A
split-complementary
#1F1A71 #714A1A #41711A
monochromatic
#070619 #110F3F #1F1A71 #2D25A3 #3E35D0

Accessibility & contrast

On white

14.54
#1F1A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1A71
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1A71#FFFFFF#000000##FFFFFF
##1F1A711.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1a71;
/* rgb */ color: rgb(31, 26, 113);
/* oklch */ color: oklch(29.5% 0.142 275.7);
Tailwind
colors: {
  custom: {
    50: '#68589b',
    500: '#1f1a71',
    950: '#000000',
  },
}
SCSS
$custom: #1f1a71;
$custom-light: #68589b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1a71",
  "rgb": {
    "r": 31,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 243.448,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.29492,
    "c": 0.14224,
    "h": 275.7
  },
  "luminance": 0.02222
}

Semantic roles & 50–950 ramp

primary
#1F1A71
secondary
#A0A641
accent
#E642DC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1A71

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

Preview Lab → · Contrast checker → · Palette generator →

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