#1F1880#1F1880

#1F1880 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.164 H 274.1°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#1F1880
RGBrgb(31, 24, 128)
HSLhsl(244, 68%, 30%)
HSVhsv(244, 81%, 50%)
CMYKcmyk(75.8%, 81.3%, 0%, 49.8%)
CIE-LABlab(17.93, 38.39, -56.40)
CIE-LCHlch(17.93, 68.23, 304.24°)
OKLaboklab(30.93% 0.0117 -0.1632)
OKLCHoklch(30.93% 0.164 274.1)
XYZxyz(4.7867, 2.5026, 20.6487)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1880 #798018
analogous
#184580 #1F1880 #531880
triadic
#1F1880 #801F18 #18801F
tetradic
#1F1880 #801845 #798018 #188053
square
#1F1880 #801845 #798018 #188053
split-complementary
#1F1880 #805318 #458018
monochromatic
#06051A #130E4C #1F1880 #2B22B4 #4339DA

Accessibility & contrast

On white

13.99
#1F1880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#1F1880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1880
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1880#FFFFFF#000000##FFFFFF
##1F18801.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#00277E
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f1880;
/* rgb */ color: rgb(31, 24, 128);
/* oklch */ color: oklch(30.9% 0.164 274.1);
Tailwind
colors: {
  custom: {
    50: '#6c57a6',
    500: '#1f1880',
    950: '#000000',
  },
}
SCSS
$custom: #1f1880;
$custom-light: #6c57a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1880",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 244.038,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3093,
    "c": 0.16358,
    "h": 274.1
  },
  "luminance": 0.02503
}

Semantic roles & 50–950 ramp

primary
#1F1880
secondary
#ACB440
accent
#EB3DE0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F1880

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

Preview Lab → · Contrast checker → · Palette generator →

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