#1F1C93#1F1C93

#1F1C93 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.183 H 271.8°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#1F1C93
RGBrgb(31, 28, 147)
HSLhsl(242, 68%, 34%)
HSVhsv(242, 81%, 58%)
CMYKcmyk(78.9%, 81%, 0%, 42.4%)
CIE-LABlab(20.93, 42.56, -63.34)
CIE-LCHlch(20.93, 76.31, 303.90°)
OKLaboklab(33.69% 0.0057 -0.1833)
OKLCHoklch(33.69% 0.183 271.8)
XYZxyz(6.2450, 3.2277, 27.8920)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1C93 #90931C
analogous
#1C5493 #1F1C93 #5B1C93
triadic
#1F1C93 #931F1C #1C931F
tetradic
#1F1C93 #931C54 #90931C #1C935B
square
#1F1C93 #931C54 #90931C #1C935B
split-complementary
#1F1C93 #935B1C #54931C
monochromatic
#09082C #141260 #1F1C93 #2A26C6 #504CDD

Accessibility & contrast

On white

12.76
#1F1C93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1C93
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1C93#FFFFFF#000000##FFFFFF
##1F1C931.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003896
Deuteranopia (green-blind)
#002C91
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f1c93;
/* rgb */ color: rgb(31, 28, 147);
/* oklch */ color: oklch(33.7% 0.183 271.8);
Tailwind
colors: {
  custom: {
    50: '#715bb4',
    500: '#1f1c93',
    950: '#000000',
  },
}
SCSS
$custom: #1f1c93;
$custom-light: #715bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1c93",
  "rgb": {
    "r": 31,
    "g": 28,
    "b": 147
  },
  "hsl": {
    "h": 241.513,
    "s": 68,
    "l": 34.314
  },
  "oklch": {
    "l": 0.33689,
    "c": 0.18343,
    "h": 271.8
  },
  "luminance": 0.03228
}

Semantic roles & 50–950 ramp

primary
#1F1C93
secondary
#BCBF4C
accent
#EB3DE6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1C93

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

Preview Lab → · Contrast checker → · Palette generator →

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