#1F1981#1F1981

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

Color values

HEX#1F1981
RGBrgb(31, 25, 129)
HSLhsl(243, 68%, 30%)
HSVhsv(243, 81%, 51%)
CMYKcmyk(76%, 80.6%, 0%, 49.4%)
CIE-LABlab(18.24, 38.18, -56.53)
CIE-LCHlch(18.24, 68.22, 304.04°)
OKLaboklab(31.18% 0.011 -0.1635)
OKLCHoklch(31.18% 0.164 273.9)
XYZxyz(4.8738, 2.5711, 21.0040)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1981 #7B8119
analogous
#194781 #1F1981 #531981
triadic
#1F1981 #811F19 #19811F
tetradic
#1F1981 #811947 #7B8119 #198153
square
#1F1981 #811947 #7B8119 #198153
split-complementary
#1F1981 #815319 #478119
monochromatic
#06051A #130F4E #1F1981 #2B23B4 #443BD9

Accessibility & contrast

On white

13.87
#1F1981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1981
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1981#FFFFFF#000000##FFFFFF
##1F19811.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f1981;
/* rgb */ color: rgb(31, 25, 129);
/* oklch */ color: oklch(31.2% 0.164 273.9);
Tailwind
colors: {
  custom: {
    50: '#6c58a7',
    500: '#1f1981',
    950: '#000000',
  },
}
SCSS
$custom: #1f1981;
$custom-light: #6c58a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1981",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 243.462,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31179,
    "c": 0.16391,
    "h": 273.9
  },
  "luminance": 0.02572
}

Semantic roles & 50–950 ramp

primary
#1F1981
secondary
#AEB541
accent
#EA3DE0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1981

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

Preview Lab → · Contrast checker → · Palette generator →

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