#1F1882#1F1882

#1F1882 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.166 H 273.9°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#1F1882
RGBrgb(31, 24, 130)
HSLhsl(244, 69%, 30%)
HSVhsv(244, 82%, 51%)
CMYKcmyk(76.2%, 81.5%, 0%, 49%)
CIE-LABlab(18.17, 39.06, -57.28)
CIE-LCHlch(18.17, 69.33, 304.29°)
OKLaboklab(31.17% 0.0112 -0.1657)
OKLCHoklch(31.17% 0.166 273.9)
XYZxyz(4.9196, 2.5558, 21.3488)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1882 #7B8218
analogous
#184682 #1F1882 #541882
triadic
#1F1882 #821F18 #18821F
tetradic
#1F1882 #821846 #7B8218 #188254
square
#1F1882 #821846 #7B8218 #188254
split-complementary
#1F1882 #825418 #468218
monochromatic
#06051B #130E4E #1F1882 #2B22B6 #443ADB

Accessibility & contrast

On white

13.90
#1F1882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1882
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1882#FFFFFF#000000##FFFFFF
##1F18821.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003185
Deuteranopia (green-blind)
#002780
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f1882;
/* rgb */ color: rgb(31, 24, 130);
/* oklch */ color: oklch(31.2% 0.166 273.9);
Tailwind
colors: {
  custom: {
    50: '#6d58a8',
    500: '#1f1882',
    950: '#000000',
  },
}
SCSS
$custom: #1f1882;
$custom-light: #6d58a8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1882",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 243.962,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31166,
    "c": 0.16607,
    "h": 273.9
  },
  "luminance": 0.02556
}

Semantic roles & 50–950 ramp

primary
#1F1882
secondary
#AEB640
accent
#EC3CE0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1882

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

Preview Lab → · Contrast checker → · Palette generator →

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