#1F1081#1F1081

#1F1081 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.1% C 0.171 H 274.8°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#1F1081
RGBrgb(31, 16, 129)
HSLhsl(248, 78%, 28%)
HSVhsv(248, 88%, 51%)
CMYKcmyk(76%, 87.6%, 0%, 49.4%)
CIE-LABlab(16.73, 42.59, -59.03)
CIE-LCHlch(16.73, 72.79, 305.81°)
OKLaboklab(30.14% 0.0142 -0.1706)
OKLCHoklch(30.14% 0.171 274.8)
XYZxyz(4.7115, 2.2464, 20.9499)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1081 #728110
analogous
#103981 #1F1081 #571081
triadic
#1F1081 #811F10 #10811F
tetradic
#1F1081 #811039 #728110 #108157
square
#1F1081 #811039 #728110 #108157
split-complementary
#1F1081 #815710 #398110
monochromatic
#07031B #12094B #1F1081 #2C17B7 #4027E4

Accessibility & contrast

On white

14.49
#1F1081 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1F1081 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1081
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1081#FFFFFF#000000##FFFFFF
##1F10811.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E84
Deuteranopia (green-blind)
#00247F
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f1081;
/* rgb */ color: rgb(31, 16, 129);
/* oklch */ color: oklch(30.1% 0.171 274.8);
Tailwind
colors: {
  custom: {
    50: '#6d53a7',
    500: '#1f1081',
    950: '#000000',
  },
}
SCSS
$custom: #1f1081;
$custom-light: #6d53a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1081",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 129
  },
  "hsl": {
    "h": 247.965,
    "s": 77.931,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30135,
    "c": 0.17122,
    "h": 274.8
  },
  "luminance": 0.02247
}

Semantic roles & 50–950 ramp

primary
#1F1081
secondary
#A6B736
accent
#F433DB
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1081

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

Preview Lab → · Contrast checker → · Palette generator →

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