#1F2582#1F2582

#1F2582 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.153 H 271.8°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#1F2582
RGBrgb(31, 37, 130)
HSLhsl(236, 61%, 32%)
HSVhsv(236, 76%, 51%)
CMYKcmyk(76.2%, 71.5%, 0%, 49%)
CIE-LABlab(20.93, 31.31, -52.73)
CIE-LCHlch(20.93, 61.32, 300.70°)
OKLaboklab(33.12% 0.0048 -0.1525)
OKLCHoklch(33.12% 0.153 271.8)
XYZxyz(5.2545, 3.2256, 21.4604)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2582 #827C1F
analogous
#1F5782 #1F2582 #4B1F82
triadic
#1F2582 #821F25 #25821F
tetradic
#1F2582 #821F57 #827C1F #1F824B
square
#1F2582 #821F57 #827C1F #1F824B
split-complementary
#1F2582 #824B1F #57821F
monochromatic
#07091F #131751 #1F2582 #2B33B3 #4850D3

Accessibility & contrast

On white

12.76
#1F2582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1F2582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2582
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2582#FFFFFF#000000##FFFFFF
##1F25821.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2582;
/* rgb */ color: rgb(31, 37, 130);
/* oklch */ color: oklch(33.1% 0.153 271.8);
Tailwind
colors: {
  custom: {
    50: '#6c60a7',
    500: '#1f2582',
    950: '#000000',
  },
}
SCSS
$custom: #1f2582;
$custom-light: #6c60a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2582",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 130
  },
  "hsl": {
    "h": 236.364,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33124,
    "c": 0.15261,
    "h": 271.8
  },
  "luminance": 0.03226
}

Semantic roles & 50–950 ramp

primary
#1F2582
secondary
#B5AE48
accent
#DB43E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2582

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

Preview Lab → · Contrast checker → · Palette generator →

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