#1F2082#1F2082

#1F2082 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.158 H 272.7°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#1F2082
RGBrgb(31, 32, 130)
HSLhsl(239, 61%, 32%)
HSVhsv(239, 76%, 51%)
CMYKcmyk(76.2%, 75.4%, 0%, 49%)
CIE-LABlab(19.78, 34.46, -54.61)
CIE-LCHlch(19.78, 64.57, 302.26°)
OKLaboklab(32.31% 0.0075 -0.158)
OKLCHoklch(32.31% 0.158 272.7)
XYZxyz(5.1095, 2.9355, 21.4121)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2082 #82811F
analogous
#1F5282 #1F2082 #501F82
triadic
#1F2082 #821F20 #20821F
tetradic
#1F2082 #821F52 #82811F #1F8250
square
#1F2082 #821F52 #82811F #1F8250
split-complementary
#1F2082 #82501F #52821F
monochromatic
#07081F #131451 #1F2082 #2B2CB3 #4849D3

Accessibility & contrast

On white

13.23
#1F2082 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1F2082 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2082
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2082#FFFFFF#000000##FFFFFF
##1F20821.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002B80
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f2082;
/* rgb */ color: rgb(31, 32, 130);
/* oklch */ color: oklch(32.3% 0.158 272.7);
Tailwind
colors: {
  custom: {
    50: '#6c5ca7',
    500: '#1f2082',
    950: '#000000',
  },
}
SCSS
$custom: #1f2082;
$custom-light: #6c5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2082",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 130
  },
  "hsl": {
    "h": 239.394,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32305,
    "c": 0.1582,
    "h": 272.7
  },
  "luminance": 0.02936
}

Semantic roles & 50–950 ramp

primary
#1F2082
secondary
#B5B448
accent
#E343E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2082

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

Preview Lab → · Contrast checker → · Palette generator →

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