#1F1D9F#1F1D9F

#1F1D9F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.197 H 270.8°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#1F1D9F
RGBrgb(31, 29, 159)
HSLhsl(241, 69%, 37%)
HSVhsv(241, 82%, 62%)
CMYKcmyk(80.5%, 81.8%, 0%, 37.6%)
CIE-LABlab(22.56, 45.95, -68.03)
CIE-LCHlch(22.56, 82.09, 304.04°)
OKLaboklab(35.24% 0.0027 -0.1969)
OKLCHoklch(35.24% 0.197 270.8)
XYZxyz(7.2603, 3.6724, 33.1204)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1D9F #9D9F1D
analogous
#1D5C9F #1F1D9F #601D9F
triadic
#1F1D9F #9F1F1D #1D9F1F
tetradic
#1F1D9F #9F1D5C #9D9F1D #1D9F60
square
#1F1D9F #9F1D5C #9D9F1D #1D9F60
split-complementary
#1F1D9F #9F601D #5C9F1D
monochromatic
#0B0A37 #15146B #1F1D9F #2926D3 #5856E0

Accessibility & contrast

On white

12.11
#1F1D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1F1D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1D9F
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1D9F#FFFFFF#000000##FFFFFF
##1F1D9F1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA3
Deuteranopia (green-blind)
#002F9D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f1d9f;
/* rgb */ color: rgb(31, 29, 159);
/* oklch */ color: oklch(35.2% 0.197 270.8);
Tailwind
colors: {
  custom: {
    50: '#745cbd',
    500: '#1f1d9f',
    950: '#000000',
  },
}
SCSS
$custom: #1f1d9f;
$custom-light: #745cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1d9f",
  "rgb": {
    "r": 31,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 240.923,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3524,
    "c": 0.19695,
    "h": 270.8
  },
  "luminance": 0.03673
}

Semantic roles & 50–950 ramp

primary
#1F1D9F
secondary
#C2C454
accent
#EC3CE9
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F1D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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