#1F1C94#1F1C94

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

Color values

HEX#1F1C94
RGBrgb(31, 28, 148)
HSLhsl(242, 68%, 35%)
HSVhsv(242, 81%, 58%)
CMYKcmyk(79.1%, 81.1%, 0%, 42%)
CIE-LABlab(21.05, 42.89, -63.76)
CIE-LCHlch(21.05, 76.85, 303.93°)
OKLaboklab(33.81% 0.0055 -0.1846)
OKLCHoklch(33.81% 0.185 271.7)
XYZxyz(6.3238, 3.2592, 28.3070)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1C94 #91941C
analogous
#1C5594 #1F1C94 #5B1C94
triadic
#1F1C94 #941F1C #1C941F
tetradic
#1F1C94 #941C55 #91941C #1C945B
square
#1F1C94 #941C55 #91941C #1C945B
split-complementary
#1F1C94 #945B1C #55941C
monochromatic
#09092D #141261 #1F1C94 #2A26C7 #514DDD

Accessibility & contrast

On white

12.71
#1F1C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1F1C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1C94
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1C94#FFFFFF#000000##FFFFFF
##1F1C941.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003897
Deuteranopia (green-blind)
#002C92
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f1c94;
/* rgb */ color: rgb(31, 28, 148);
/* oklch */ color: oklch(33.8% 0.185 271.7);
Tailwind
colors: {
  custom: {
    50: '#715bb5',
    500: '#1f1c94',
    950: '#000000',
  },
}
SCSS
$custom: #1f1c94;
$custom-light: #715bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1c94",
  "rgb": {
    "r": 31,
    "g": 28,
    "b": 148
  },
  "hsl": {
    "h": 241.5,
    "s": 68.182,
    "l": 34.51
  },
  "oklch": {
    "l": 0.33808,
    "c": 0.18464,
    "h": 271.7
  },
  "luminance": 0.0326
}

Semantic roles & 50–950 ramp

primary
#1F1C94
secondary
#BDC04C
accent
#EB3DE7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1C94

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

Preview Lab → · Contrast checker → · Palette generator →

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