#1F1480#1F1480

#1F1480 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.167 H 274.5°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#1F1480
RGBrgb(31, 20, 128)
HSLhsl(246, 73%, 29%)
HSVhsv(246, 84%, 50%)
CMYKcmyk(75.8%, 84.4%, 0%, 49.8%)
CIE-LABlab(17.22, 40.45, -57.57)
CIE-LCHlch(17.22, 70.36, 305.09°)
OKLaboklab(30.44% 0.0132 -0.1665)
OKLCHoklch(30.44% 0.167 274.5)
XYZxyz(4.7102, 2.3497, 20.6232)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1480 #758014
analogous
#143F80 #1F1480 #551480
triadic
#1F1480 #801F14 #14801F
tetradic
#1F1480 #80143F #758014 #148055
square
#1F1480 #80143F #758014 #148055
split-complementary
#1F1480 #805514 #3F8014
monochromatic
#06041A #120C4B #1F1480 #2C1CB5 #4230DF

Accessibility & contrast

On white

14.29
#1F1480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1480
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1480#FFFFFF#000000##FFFFFF
##1F14801.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00257E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f1480;
/* rgb */ color: rgb(31, 20, 128);
/* oklch */ color: oklch(30.4% 0.167 274.5);
Tailwind
colors: {
  custom: {
    50: '#6d55a6',
    500: '#1f1480',
    950: '#000000',
  },
}
SCSS
$custom: #1f1480;
$custom-light: #6d55a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1480",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 128
  },
  "hsl": {
    "h": 246.111,
    "s": 72.973,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30439,
    "c": 0.16701,
    "h": 274.5
  },
  "luminance": 0.0235
}

Semantic roles & 50–950 ramp

primary
#1F1480
secondary
#A9B53B
accent
#F038DD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F1480

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

Preview Lab → · Contrast checker → · Palette generator →

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