#1F1977#1F1977

#1F1977 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.151 H 275.1°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#1F1977
RGBrgb(31, 25, 119)
HSLhsl(244, 65%, 28%)
HSVhsv(244, 79%, 47%)
CMYKcmyk(73.9%, 79%, 0%, 53.3%)
CIE-LABlab(17.08, 34.78, -52.07)
CIE-LCHlch(17.08, 62.62, 303.74°)
OKLaboklab(30.02% 0.0134 -0.1506)
OKLCHoklch(30.02% 0.151 275.1)
XYZxyz(4.2414, 2.3181, 17.6731)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1977 #717719
analogous
#194277 #1F1977 #4E1977
triadic
#1F1977 #771F19 #19771F
tetradic
#1F1977 #771942 #717719 #19774E
square
#1F1977 #771942 #717719 #19774E
split-complementary
#1F1977 #774E19 #427719
monochromatic
#070519 #120E44 #1F1977 #2C24AA #4036D5

Accessibility & contrast

On white

14.35
#1F1977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1977
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1977#FFFFFF#000000##FFFFFF
##1F19771.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002675
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f1977;
/* rgb */ color: rgb(31, 25, 119);
/* oklch */ color: oklch(30.0% 0.151 275.1);
Tailwind
colors: {
  custom: {
    50: '#6a579f',
    500: '#1f1977',
    950: '#000000',
  },
}
SCSS
$custom: #1f1977;
$custom-light: #6a579f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1977",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 243.83,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3002,
    "c": 0.15117,
    "h": 275.1
  },
  "luminance": 0.02318
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F1977

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

Preview Lab → · Contrast checker → · Palette generator →

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