#1F1978#1F1978

#1F1978 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.152 H 275.0°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#1F1978
RGBrgb(31, 25, 120)
HSLhsl(244, 66%, 28%)
HSVhsv(244, 79%, 47%)
CMYKcmyk(74.2%, 79.2%, 0%, 52.9%)
CIE-LABlab(17.19, 35.13, -52.52)
CIE-LCHlch(17.19, 63.19, 303.77°)
OKLaboklab(30.14% 0.0132 -0.1519)
OKLCHoklch(30.14% 0.152 275)
XYZxyz(4.3017, 2.3422, 17.9910)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1978 #727819
analogous
#194278 #1F1978 #4E1978
triadic
#1F1978 #781F19 #19781F
tetradic
#1F1978 #781942 #727819 #19784E
square
#1F1978 #781942 #727819 #19784E
split-complementary
#1F1978 #784E19 #427819
monochromatic
#070519 #120E45 #1F1978 #2C24AB #4036D5

Accessibility & contrast

On white

14.30
#1F1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1F1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1978
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1978#FFFFFF#000000##FFFFFF
##1F19781.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1978;
/* rgb */ color: rgb(31, 25, 120);
/* oklch */ color: oklch(30.1% 0.152 275.0);
Tailwind
colors: {
  custom: {
    50: '#6a58a0',
    500: '#1f1978',
    950: '#000000',
  },
}
SCSS
$custom: #1f1978;
$custom-light: #6a58a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1978",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 243.789,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30135,
    "c": 0.15246,
    "h": 275
  },
  "luminance": 0.02343
}

Semantic roles & 50–950 ramp

primary
#1F1978
secondary
#A6AD40
accent
#E83FDE
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1F1978

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

Preview Lab → · Contrast checker → · Palette generator →

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