#1F1D94#1F1D94

#1F1D94 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.184 H 271.6°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#1F1D94
RGBrgb(31, 29, 148)
HSLhsl(241, 67%, 35%)
HSVhsv(241, 80%, 58%)
CMYKcmyk(79.1%, 80.4%, 0%, 42%)
CIE-LABlab(21.24, 42.36, -63.46)
CIE-LCHlch(21.24, 76.30, 303.73°)
OKLaboklab(33.93% 0.0051 -0.1837)
OKLCHoklch(33.93% 0.184 271.6)
XYZxyz(6.3479, 3.3075, 28.3151)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1D94 #92941D
analogous
#1D5794 #1F1D94 #5A1D94
triadic
#1F1D94 #941F1D #1D941F
tetradic
#1F1D94 #941D57 #92941D #1D945A
square
#1F1D94 #941D57 #92941D #1D945A
split-complementary
#1F1D94 #945A1D #57941D
monochromatic
#0A092E #141361 #1F1D94 #2A27C7 #514FDC

Accessibility & contrast

On white

12.64
#1F1D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1F1D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1D94
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1D94#FFFFFF#000000##FFFFFF
##1F1D941.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#002D92
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f1d94;
/* rgb */ color: rgb(31, 29, 148);
/* oklch */ color: oklch(33.9% 0.184 271.6);
Tailwind
colors: {
  custom: {
    50: '#715cb5',
    500: '#1f1d94',
    950: '#000000',
  },
}
SCSS
$custom: #1f1d94;
$custom-light: #715cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1d94",
  "rgb": {
    "r": 31,
    "g": 29,
    "b": 148
  },
  "hsl": {
    "h": 241.008,
    "s": 67.232,
    "l": 34.706
  },
  "oklch": {
    "l": 0.33935,
    "c": 0.18377,
    "h": 271.6
  },
  "luminance": 0.03308
}

Semantic roles & 50–950 ramp

primary
#1F1D94
secondary
#BDBF4E
accent
#EA3EE7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1D94

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

Preview Lab → · Contrast checker → · Palette generator →

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