#1F1477#1F1477

#1F1477 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.4% C 0.156 H 275.8°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#1F1477
RGBrgb(31, 20, 119)
HSLhsl(247, 71%, 27%)
HSVhsv(247, 83%, 47%)
CMYKcmyk(73.9%, 83.2%, 0%, 53.3%)
CIE-LABlab(16.12, 37.53, -53.65)
CIE-LCHlch(16.12, 65.47, 304.97°)
OKLaboklab(29.35% 0.0158 -0.1551)
OKLCHoklch(29.35% 0.156 275.8)
XYZxyz(4.1439, 2.1231, 17.6406)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1477 #6C7714
analogous
#143A77 #1F1477 #511477
triadic
#1F1477 #771F14 #14771F
tetradic
#1F1477 #77143A #6C7714 #147751
square
#1F1477 #77143A #6C7714 #147751
split-complementary
#1F1477 #775114 #3A7714
monochromatic
#07041A #110B43 #1F1477 #2D1DAB #3E2ADB

Accessibility & contrast

On white

14.74
#1F1477 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1477
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1477#FFFFFF#000000##FFFFFF
##1F14771.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C7A
Deuteranopia (green-blind)
#002475
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f1477;
/* rgb */ color: rgb(31, 20, 119);
/* oklch */ color: oklch(29.4% 0.156 275.8);
Tailwind
colors: {
  custom: {
    50: '#6a559f',
    500: '#1f1477',
    950: '#000000',
  },
}
SCSS
$custom: #1f1477;
$custom-light: #6a559f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1477",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 119
  },
  "hsl": {
    "h": 246.667,
    "s": 71.223,
    "l": 27.255
  },
  "oklch": {
    "l": 0.29352,
    "c": 0.15591,
    "h": 275.8
  },
  "luminance": 0.02124
}

Semantic roles & 50–950 ramp

primary
#1F1477
secondary
#A0AD3A
accent
#EE3ADA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030F
muted
#7A787E

Preview Lab

Preview with #1F1477

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

Preview Lab → · Contrast checker → · Palette generator →

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