#1F1980#1F1980

#1F1980 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.1% C 0.163 H 274.0°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#1F1980
RGBrgb(31, 25, 128)
HSLhsl(243, 67%, 30%)
HSVhsv(243, 80%, 50%)
CMYKcmyk(75.8%, 80.5%, 0%, 49.8%)
CIE-LABlab(18.12, 37.85, -56.09)
CIE-LCHlch(18.12, 67.67, 304.01°)
OKLaboklab(31.06% 0.0113 -0.1623)
OKLCHoklch(31.06% 0.163 274)
XYZxyz(4.8077, 2.5446, 20.6557)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1980 #7A8019
analogous
#194780 #1F1980 #521980
triadic
#1F1980 #801F19 #19801F
tetradic
#1F1980 #801947 #7A8019 #198052
square
#1F1980 #801947 #7A8019 #198052
split-complementary
#1F1980 #805219 #478019
monochromatic
#06051A #130F4D #1F1980 #2B23B3 #443BD9

Accessibility & contrast

On white

13.92
#1F1980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1F1980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1980
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1980#FFFFFF#000000##FFFFFF
##1F19801.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.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: #1f1980;
/* rgb */ color: rgb(31, 25, 128);
/* oklch */ color: oklch(31.1% 0.163 274.0);
Tailwind
colors: {
  custom: {
    50: '#6c58a6',
    500: '#1f1980',
    950: '#000000',
  },
}
SCSS
$custom: #1f1980;
$custom-light: #6c58a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1980",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 243.495,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.31062,
    "c": 0.16265,
    "h": 274
  },
  "luminance": 0.02545
}

Semantic roles & 50–950 ramp

primary
#1F1980
secondary
#ADB441
accent
#EA3EE0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F1980

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

Preview Lab → · Contrast checker → · Palette generator →

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