#1F1983#1F1983

#1F1983 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.166 H 273.6°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#1F1983
RGBrgb(31, 25, 131)
HSLhsl(243, 68%, 31%)
HSVhsv(243, 81%, 51%)
CMYKcmyk(76.3%, 80.9%, 0%, 48.6%)
CIE-LABlab(18.47, 38.86, -57.41)
CIE-LCHlch(18.47, 69.32, 304.09°)
OKLaboklab(31.41% 0.0105 -0.1661)
OKLCHoklch(31.41% 0.166 273.6)
XYZxyz(5.0081, 2.6247, 21.7110)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1983 #7D8319
analogous
#194883 #1F1983 #541983
triadic
#1F1983 #831F19 #19831F
tetradic
#1F1983 #831948 #7D8319 #198354
square
#1F1983 #831948 #7D8319 #198354
split-complementary
#1F1983 #835419 #488319
monochromatic
#07051C #130F50 #1F1983 #2B23B6 #453DDA

Accessibility & contrast

On white

13.77
#1F1983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1F1983 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1983
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1983#FFFFFF#000000##FFFFFF
##1F19831.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003286
Deuteranopia (green-blind)
#002881
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f1983;
/* rgb */ color: rgb(31, 25, 131);
/* oklch */ color: oklch(31.4% 0.166 273.6);
Tailwind
colors: {
  custom: {
    50: '#6d58a8',
    500: '#1f1983',
    950: '#000000',
  },
}
SCSS
$custom: #1f1983;
$custom-light: #6d58a8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1983",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 131
  },
  "hsl": {
    "h": 243.396,
    "s": 67.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31414,
    "c": 0.16641,
    "h": 273.6
  },
  "luminance": 0.02625
}

Semantic roles & 50–950 ramp

primary
#1F1983
secondary
#B0B741
accent
#EB3DE1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1983

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

Preview Lab → · Contrast checker → · Palette generator →

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