#1F1976#1F1976

#1F1976 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.150 H 275.2°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#1F1976
RGBrgb(31, 25, 118)
HSLhsl(244, 65%, 28%)
HSVhsv(244, 79%, 46%)
CMYKcmyk(73.7%, 78.8%, 0%, 53.7%)
CIE-LABlab(16.96, 34.44, -51.62)
CIE-LCHlch(16.96, 62.05, 303.71°)
OKLaboklab(29.91% 0.0137 -0.1492)
OKLCHoklch(29.91% 0.15 275.2)
XYZxyz(4.1816, 2.2942, 17.3585)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1976 #707619
analogous
#194176 #1F1976 #4D1976
triadic
#1F1976 #761F19 #19761F
tetradic
#1F1976 #761941 #707619 #19764D
square
#1F1976 #761941 #707619 #19764D
split-complementary
#1F1976 #764D19 #417619
monochromatic
#070519 #120E43 #1F1976 #2C24A8 #3F35D4

Accessibility & contrast

On white

14.39
#1F1976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1F1976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1976
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1976#FFFFFF#000000##FFFFFF
##1F19761.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002674
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f1976;
/* rgb */ color: rgb(31, 25, 118);
/* oklch */ color: oklch(29.9% 0.150 275.2);
Tailwind
colors: {
  custom: {
    50: '#6a579f',
    500: '#1f1976',
    950: '#000000',
  },
}
SCSS
$custom: #1f1976;
$custom-light: #6a579f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1976",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 243.871,
    "s": 65.035,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29906,
    "c": 0.14987,
    "h": 275.2
  },
  "luminance": 0.02295
}

Semantic roles & 50–950 ramp

primary
#1F1976
secondary
#A4AB40
accent
#E840DD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #1F1976

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

Preview Lab → · Contrast checker → · Palette generator →

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