#1F1377#1F1377

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

Color values

HEX#1F1377
RGBrgb(31, 19, 119)
HSLhsl(247, 72%, 27%)
HSVhsv(247, 84%, 47%)
CMYKcmyk(73.9%, 84%, 0%, 53.3%)
CIE-LABlab(15.95, 38.04, -53.94)
CIE-LCHlch(15.95, 66.00, 305.19°)
OKLaboklab(29.23% 0.0163 -0.1559)
OKLCHoklch(29.23% 0.157 276)
XYZxyz(4.1266, 2.0886, 17.6348)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1377 #6B7713
analogous
#133977 #1F1377 #511377
triadic
#1F1377 #771F13 #13771F
tetradic
#1F1377 #771339 #6B7713 #137751
square
#1F1377 #771339 #6B7713 #137751
split-complementary
#1F1377 #775113 #397713
monochromatic
#07041A #110B42 #1F1377 #2D1BAC #3D28DD

Accessibility & contrast

On white

14.81
#1F1377 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1377
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1377#FFFFFF#000000##FFFFFF
##1F13771.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1377;
/* rgb */ color: rgb(31, 19, 119);
/* oklch */ color: oklch(29.2% 0.157 276.0);
Tailwind
colors: {
  custom: {
    50: '#6b549f',
    500: '#1f1377',
    950: '#000000',
  },
}
SCSS
$custom: #1f1377;
$custom-light: #6b549f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1377",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 119
  },
  "hsl": {
    "h": 247.2,
    "s": 72.464,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29231,
    "c": 0.15677,
    "h": 276
  },
  "luminance": 0.02089
}

Semantic roles & 50–950 ramp

primary
#1F1377
secondary
#9FAD39
accent
#EF39D9
background
#F6F5F9
surface
#ECE8F2
border
#C7C4CC
text
#08030F
muted
#7A787E

Preview Lab

Preview with #1F1377

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

Preview Lab → · Contrast checker → · Palette generator →

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