#1F1380#1F1380

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

Color values

HEX#1F1380
RGBrgb(31, 19, 128)
HSLhsl(247, 74%, 29%)
HSVhsv(247, 85%, 50%)
CMYKcmyk(75.8%, 85.2%, 0%, 49.8%)
CIE-LABlab(17.06, 40.93, -57.85)
CIE-LCHlch(17.06, 70.86, 305.28°)
OKLaboklab(30.33% 0.0136 -0.1672)
OKLCHoklch(30.33% 0.168 274.6)
XYZxyz(4.6929, 2.3151, 20.6174)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1380 #748013
analogous
#133E80 #1F1380 #561380
triadic
#1F1380 #801F13 #13801F
tetradic
#1F1380 #80133E #748013 #138056
square
#1F1380 #80133E #748013 #138056
split-complementary
#1F1380 #805613 #3E8013
monochromatic
#06041B #120B4B #1F1380 #2C1BB5 #412DE0

Accessibility & contrast

On white

14.35
#1F1380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1380
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1380#FFFFFF#000000##FFFFFF
##1F13801.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1380;
/* rgb */ color: rgb(31, 19, 128);
/* oklch */ color: oklch(30.3% 0.168 274.6);
Tailwind
colors: {
  custom: {
    50: '#6d55a6',
    500: '#1f1380',
    950: '#000000',
  },
}
SCSS
$custom: #1f1380;
$custom-light: #6d55a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1380",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 128
  },
  "hsl": {
    "h": 246.606,
    "s": 74.15,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30326,
    "c": 0.1678,
    "h": 274.6
  },
  "luminance": 0.02316
}

Semantic roles & 50–950 ramp

primary
#1F1380
secondary
#A8B539
accent
#F137DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F1380

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

Preview Lab → · Contrast checker → · Palette generator →

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