#1F1982#1F1982

#1F1982 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.165 H 273.7°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#1F1982
RGBrgb(31, 25, 130)
HSLhsl(243, 68%, 30%)
HSVhsv(243, 81%, 51%)
CMYKcmyk(76.2%, 80.8%, 0%, 49%)
CIE-LABlab(18.36, 38.52, -56.97)
CIE-LCHlch(18.36, 68.77, 304.06°)
OKLaboklab(31.3% 0.0108 -0.1648)
OKLCHoklch(31.3% 0.165 273.7)
XYZxyz(4.9406, 2.5978, 21.3558)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1982 #7C8219
analogous
#194782 #1F1982 #541982
triadic
#1F1982 #821F19 #19821F
tetradic
#1F1982 #821947 #7C8219 #198254
square
#1F1982 #821947 #7C8219 #198254
split-complementary
#1F1982 #825419 #478219
monochromatic
#07051B #130F4F #1F1982 #2B23B5 #453CD9

Accessibility & contrast

On white

13.82
#1F1982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1F1982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1982
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1982#FFFFFF#000000##FFFFFF
##1F19821.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003285
Deuteranopia (green-blind)
#002880
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f1982;
/* rgb */ color: rgb(31, 25, 130);
/* oklch */ color: oklch(31.3% 0.165 273.7);
Tailwind
colors: {
  custom: {
    50: '#6d58a8',
    500: '#1f1982',
    950: '#000000',
  },
}
SCSS
$custom: #1f1982;
$custom-light: #6d58a8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1982",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 243.429,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31296,
    "c": 0.16516,
    "h": 273.7
  },
  "luminance": 0.02598
}

Semantic roles & 50–950 ramp

primary
#1F1982
secondary
#AFB641
accent
#EB3DE1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1982

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

Preview Lab → · Contrast checker → · Palette generator →

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