#1F1685#1F1685

#1F1685 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.171 H 273.7°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#1F1685
RGBrgb(31, 22, 133)
HSLhsl(245, 72%, 30%)
HSVhsv(245, 83%, 52%)
CMYKcmyk(76.7%, 83.5%, 0%, 47.8%)
CIE-LABlab(18.18, 41.07, -59.16)
CIE-LCHlch(18.18, 72.01, 304.77°)
OKLaboklab(31.28% 0.0111 -0.1711)
OKLCHoklch(31.28% 0.171 273.7)
XYZxyz(5.0842, 2.5581, 22.4116)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1685 #7C8516
analogous
#164485 #1F1685 #561685
triadic
#1F1685 #851F16 #16851F
tetradic
#1F1685 #851644 #7C8516 #168556
square
#1F1685 #851644 #7C8516 #168556
split-complementary
#1F1685 #855616 #448516
monochromatic
#07051C #130D50 #1F1685 #2B1FBA #4537DE

Accessibility & contrast

On white

13.89
#1F1685 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1F1685 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1685
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1685#FFFFFF#000000##FFFFFF
##1F16851.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003188
Deuteranopia (green-blind)
#002783
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f1685;
/* rgb */ color: rgb(31, 22, 133);
/* oklch */ color: oklch(31.3% 0.171 273.7);
Tailwind
colors: {
  custom: {
    50: '#6e57aa',
    500: '#1f1685',
    950: '#000000',
  },
}
SCSS
$custom: #1f1685;
$custom-light: #6e57aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1685",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 133
  },
  "hsl": {
    "h": 244.865,
    "s": 71.613,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31279,
    "c": 0.17147,
    "h": 273.7
  },
  "luminance": 0.02559
}

Semantic roles & 50–950 ramp

primary
#1F1685
secondary
#AFB93E
accent
#EE39E0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1685

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

Preview Lab → · Contrast checker → · Palette generator →

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