#1F1280#1F1280

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

Color values

HEX#1F1280
RGBrgb(31, 18, 128)
HSLhsl(247, 75%, 29%)
HSVhsv(247, 86%, 50%)
CMYKcmyk(75.8%, 85.9%, 0%, 49.8%)
CIE-LABlab(16.90, 41.39, -58.11)
CIE-LCHlch(16.90, 71.34, 305.46°)
OKLaboklab(30.22% 0.0139 -0.168)
OKLCHoklch(30.22% 0.169 274.7)
XYZxyz(4.6764, 2.2820, 20.6119)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1280 #738012
analogous
#123C80 #1F1280 #561280
triadic
#1F1280 #801F12 #12801F
tetradic
#1F1280 #80123C #738012 #128056
square
#1F1280 #80123C #738012 #128056
split-complementary
#1F1280 #805612 #3C8012
monochromatic
#06041B #120A4A #1F1280 #2C1AB6 #412BE1

Accessibility & contrast

On white

14.42
#1F1280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1280
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1280#FFFFFF#000000##FFFFFF
##1F12801.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1280;
/* rgb */ color: rgb(31, 18, 128);
/* oklch */ color: oklch(30.2% 0.169 274.7);
Tailwind
colors: {
  custom: {
    50: '#6d54a6',
    500: '#1f1280',
    950: '#000000',
  },
}
SCSS
$custom: #1f1280;
$custom-light: #6d54a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1280",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 128
  },
  "hsl": {
    "h": 247.091,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30217,
    "c": 0.16858,
    "h": 274.7
  },
  "luminance": 0.02282
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F1280

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

Preview Lab → · Contrast checker → · Palette generator →

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