#1F1DA1#1F1DA1

#1F1DA1 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.5% C 0.199 H 270.7°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#1F1DA1
RGBrgb(31, 29, 161)
HSLhsl(241, 69%, 37%)
HSVhsv(241, 82%, 63%)
CMYKcmyk(80.7%, 82%, 0%, 36.9%)
CIE-LABlab(22.80, 46.60, -68.84)
CIE-LCHlch(22.80, 83.13, 304.09°)
OKLaboklab(35.48% 0.0023 -0.1993)
OKLCHoklch(35.48% 0.199 270.7)
XYZxyz(7.4353, 3.7424, 34.0418)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1DA1 #9FA11D
analogous
#1D5DA1 #1F1DA1 #611DA1
triadic
#1F1DA1 #A11F1D #1DA11F
tetradic
#1F1DA1 #A11D5D #9FA11D #1DA161
square
#1F1DA1 #A11D5D #9FA11D #1DA161
split-complementary
#1F1DA1 #A1611D #5DA11D
monochromatic
#0B0A39 #15146D #1F1DA1 #2926D5 #5A58E1

Accessibility & contrast

On white

12.01
#1F1DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1F1DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1DA1
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1DA1#FFFFFF#000000##FFFFFF
##1F1DA11.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA5
Deuteranopia (green-blind)
#00309F
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f1da1;
/* rgb */ color: rgb(31, 29, 161);
/* oklch */ color: oklch(35.5% 0.199 270.7);
Tailwind
colors: {
  custom: {
    50: '#745dbe',
    500: '#1f1da1',
    950: '#000000',
  },
}
SCSS
$custom: #1f1da1;
$custom-light: #745dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1da1",
  "rgb": {
    "r": 31,
    "g": 29,
    "b": 161
  },
  "hsl": {
    "h": 240.909,
    "s": 69.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.35479,
    "c": 0.19931,
    "h": 270.7
  },
  "luminance": 0.03743
}

Semantic roles & 50–950 ramp

primary
#1F1DA1
secondary
#C3C455
accent
#EC3CEA
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F1DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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