#1F1281#1F1281

#1F1281 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.170 H 274.6°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#1F1281
RGBrgb(31, 18, 129)
HSLhsl(247, 76%, 29%)
HSVhsv(247, 86%, 51%)
CMYKcmyk(76%, 86%, 0%, 49.4%)
CIE-LABlab(17.03, 41.71, -58.53)
CIE-LCHlch(17.03, 71.87, 305.47°)
OKLaboklab(30.34% 0.0136 -0.1692)
OKLCHoklch(30.34% 0.17 274.6)
XYZxyz(4.7425, 2.3084, 20.9603)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1281 #748112
analogous
#123D81 #1F1281 #571281
triadic
#1F1281 #811F12 #12811F
tetradic
#1F1281 #81123D #748112 #128157
square
#1F1281 #81123D #748112 #128157
split-complementary
#1F1281 #815712 #3D8112
monochromatic
#06041B #120B4B #1F1281 #2C19B7 #412CE2

Accessibility & contrast

On white

14.37
#1F1281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1F1281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1281
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1281#FFFFFF#000000##FFFFFF
##1F12811.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.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: #1f1281;
/* rgb */ color: rgb(31, 18, 129);
/* oklch */ color: oklch(30.3% 0.170 274.6);
Tailwind
colors: {
  custom: {
    50: '#6d54a7',
    500: '#1f1281',
    950: '#000000',
  },
}
SCSS
$custom: #1f1281;
$custom-light: #6d54a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1281",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 247.027,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3034,
    "c": 0.16978,
    "h": 274.6
  },
  "luminance": 0.02309
}

Semantic roles & 50–950 ramp

primary
#1F1281
secondary
#A8B738
accent
#F236DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1281

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

Preview Lab → · Contrast checker → · Palette generator →

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