#1F2580#1F2580

#1F2580 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.150 H 271.9°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#1F2580
RGBrgb(31, 37, 128)
HSLhsl(236, 61%, 31%)
HSVhsv(236, 76%, 50%)
CMYKcmyk(75.8%, 71.1%, 0%, 49.8%)
CIE-LABlab(20.72, 30.57, -51.80)
CIE-LCHlch(20.72, 60.15, 300.55°)
OKLaboklab(32.92% 0.005 -0.1498)
OKLCHoklch(32.92% 0.15 271.9)
XYZxyz(5.1216, 3.1724, 20.7603)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2580 #807A1F
analogous
#1F5580 #1F2580 #491F80
triadic
#1F2580 #801F25 #25801F
tetradic
#1F2580 #801F55 #807A1F #1F8049
square
#1F2580 #801F55 #807A1F #1F8049
split-complementary
#1F2580 #80491F #55801F
monochromatic
#07091D #13174F #1F2580 #2B33B1 #4750D2

Accessibility & contrast

On white

12.85
#1F2580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1F2580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2580
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2580#FFFFFF#000000##FFFFFF
##1F25801.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003683
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2580;
/* rgb */ color: rgb(31, 37, 128);
/* oklch */ color: oklch(32.9% 0.150 271.9);
Tailwind
colors: {
  custom: {
    50: '#6b60a6',
    500: '#1f2580',
    950: '#000000',
  },
}
SCSS
$custom: #1f2580;
$custom-light: #6b60a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2580",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 128
  },
  "hsl": {
    "h": 236.289,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32915,
    "c": 0.14991,
    "h": 271.9
  },
  "luminance": 0.03173
}

Semantic roles & 50–950 ramp

primary
#1F2580
secondary
#B3AC48
accent
#DA44E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #1F2580

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

Preview Lab → · Contrast checker → · Palette generator →

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