#1F1680#1F1680

#1F1680 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.7% C 0.165 H 274.3°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#1F1680
RGBrgb(31, 22, 128)
HSLhsl(245, 71%, 29%)
HSVhsv(245, 83%, 50%)
CMYKcmyk(75.8%, 82.8%, 0%, 49.8%)
CIE-LABlab(17.57, 39.44, -57.01)
CIE-LCHlch(17.57, 69.32, 304.68°)
OKLaboklab(30.68% 0.0125 -0.1649)
OKLCHoklch(30.68% 0.165 274.3)
XYZxyz(4.7470, 2.4232, 20.6354)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1680 #778016
analogous
#164280 #1F1680 #541680
triadic
#1F1680 #801F16 #16801F
tetradic
#1F1680 #801642 #778016 #168054
square
#1F1680 #801642 #778016 #168054
split-complementary
#1F1680 #805416 #428016
monochromatic
#06041A #120D4C #1F1680 #2C1FB4 #4334DC

Accessibility & contrast

On white

14.14
#1F1680 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1F1680 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1680
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1680#FFFFFF#000000##FFFFFF
##1F16801.0014.141.4814.14
#FFFFFF14.141.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#00267E
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1f1680;
/* rgb */ color: rgb(31, 22, 128);
/* oklch */ color: oklch(30.7% 0.165 274.3);
Tailwind
colors: {
  custom: {
    50: '#6d56a6',
    500: '#1f1680',
    950: '#000000',
  },
}
SCSS
$custom: #1f1680;
$custom-light: #6d56a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1680",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 128
  },
  "hsl": {
    "h": 245.094,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30677,
    "c": 0.16534,
    "h": 274.3
  },
  "luminance": 0.02424
}

Semantic roles & 50–950 ramp

primary
#1F1680
secondary
#ABB53D
accent
#ED3ADE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F1680

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

Preview Lab → · Contrast checker → · Palette generator →

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