#1F1381#1F1381

#1F1381 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.4% C 0.169 H 274.5°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#1F1381
RGBrgb(31, 19, 129)
HSLhsl(247, 74%, 29%)
HSVhsv(247, 85%, 51%)
CMYKcmyk(76%, 85.3%, 0%, 49.4%)
CIE-LABlab(17.19, 41.24, -58.27)
CIE-LCHlch(17.19, 71.39, 305.29°)
OKLaboklab(30.45% 0.0133 -0.1685)
OKLCHoklch(30.45% 0.169 274.5)
XYZxyz(4.7591, 2.3416, 20.9658)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1381 #758113
analogous
#133E81 #1F1381 #561381
triadic
#1F1381 #811F13 #13811F
tetradic
#1F1381 #81133E #758113 #138156
square
#1F1381 #81133E #758113 #138156
split-complementary
#1F1381 #815613 #3E8113
monochromatic
#06041B #120B4C #1F1381 #2C1BB6 #422EE0

Accessibility & contrast

On white

14.30
#1F1381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1F1381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1381
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1381#FFFFFF#000000##FFFFFF
##1F13811.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F84
Deuteranopia (green-blind)
#00257F
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f1381;
/* rgb */ color: rgb(31, 19, 129);
/* oklch */ color: oklch(30.4% 0.169 274.5);
Tailwind
colors: {
  custom: {
    50: '#6d55a7',
    500: '#1f1381',
    950: '#000000',
  },
}
SCSS
$custom: #1f1381;
$custom-light: #6d55a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1381",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 246.545,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30449,
    "c": 0.16901,
    "h": 274.5
  },
  "luminance": 0.02342
}

Semantic roles & 50–950 ramp

primary
#1F1381
secondary
#A9B63A
accent
#F137DD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1381

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

Preview Lab → · Contrast checker → · Palette generator →

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