#1F1682#1F1682

#1F1682 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.168 H 274.1°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#1F1682
RGBrgb(31, 22, 130)
HSLhsl(245, 71%, 30%)
HSVhsv(245, 83%, 51%)
CMYKcmyk(76.2%, 83.1%, 0%, 49%)
CIE-LABlab(17.81, 40.10, -57.87)
CIE-LCHlch(17.81, 70.40, 304.72°)
OKLaboklab(30.92% 0.012 -0.1674)
OKLCHoklch(30.92% 0.168 274.1)
XYZxyz(4.8799, 2.4763, 21.3356)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1682 #798216
analogous
#164382 #1F1682 #551682
triadic
#1F1682 #821F16 #16821F
tetradic
#1F1682 #821643 #798216 #168255
square
#1F1682 #821643 #798216 #168255
split-complementary
#1F1682 #825516 #438216
monochromatic
#06041A #130D4E #1F1682 #2B1FB6 #4335DD

Accessibility & contrast

On white

14.04
#1F1682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#1F1682 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1682
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1682#FFFFFF#000000##FFFFFF
##1F16821.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003085
Deuteranopia (green-blind)
#002680
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f1682;
/* rgb */ color: rgb(31, 22, 130);
/* oklch */ color: oklch(30.9% 0.168 274.1);
Tailwind
colors: {
  custom: {
    50: '#6d57a8',
    500: '#1f1682',
    950: '#000000',
  },
}
SCSS
$custom: #1f1682;
$custom-light: #6d57a8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1682",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 130
  },
  "hsl": {
    "h": 245,
    "s": 71.053,
    "l": 29.804
  },
  "oklch": {
    "l": 0.30917,
    "c": 0.16781,
    "h": 274.1
  },
  "luminance": 0.02477
}

Semantic roles & 50–950 ramp

primary
#1F1682
secondary
#ACB73D
accent
#EE3ADF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1682

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

Preview Lab → · Contrast checker → · Palette generator →

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