#1F1D95#1F1D95

#1F1D95 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.1% C 0.185 H 271.5°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#1F1D95
RGBrgb(31, 29, 149)
HSLhsl(241, 67%, 35%)
HSVhsv(241, 81%, 58%)
CMYKcmyk(79.2%, 80.5%, 0%, 41.6%)
CIE-LABlab(21.35, 42.69, -63.88)
CIE-LCHlch(21.35, 76.83, 303.76°)
OKLaboklab(34.05% 0.0049 -0.1849)
OKLCHoklch(34.05% 0.185 271.5)
XYZxyz(6.4274, 3.3393, 28.7337)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1D95 #93951D
analogous
#1D5795 #1F1D95 #5B1D95
triadic
#1F1D95 #951F1D #1D951F
tetradic
#1F1D95 #951D57 #93951D #1D955B
square
#1F1D95 #951D57 #93951D #1D955B
split-complementary
#1F1D95 #955B1D #57951D
monochromatic
#0A092F #141362 #1F1D95 #2A27C8 #5250DD

Accessibility & contrast

On white

12.59
#1F1D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1F1D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1D95
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1D95#FFFFFF#000000##FFFFFF
##1F1D951.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#002D93
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f1d95;
/* rgb */ color: rgb(31, 29, 149);
/* oklch */ color: oklch(34.1% 0.185 271.5);
Tailwind
colors: {
  custom: {
    50: '#715cb5',
    500: '#1f1d95',
    950: '#000000',
  },
}
SCSS
$custom: #1f1d95;
$custom-light: #715cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1d95",
  "rgb": {
    "r": 31,
    "g": 29,
    "b": 149
  },
  "hsl": {
    "h": 241,
    "s": 67.416,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34052,
    "c": 0.18499,
    "h": 271.5
  },
  "luminance": 0.0334
}

Semantic roles & 50–950 ramp

primary
#1F1D95
secondary
#BEC04E
accent
#EA3DE7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1D95

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

Preview Lab → · Contrast checker → · Palette generator →

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