#1F1C98#1F1C98

#1F1C98 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.189 H 271.4°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#1F1C98
RGBrgb(31, 28, 152)
HSLhsl(241, 69%, 35%)
HSVhsv(241, 82%, 60%)
CMYKcmyk(79.6%, 81.6%, 0%, 40.4%)
CIE-LABlab(21.54, 44.20, -65.43)
CIE-LCHlch(21.54, 78.96, 304.04°)
OKLaboklab(34.28% 0.0046 -0.1894)
OKLCHoklch(34.28% 0.189 271.4)
XYZxyz(6.6459, 3.3881, 30.0034)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1C98 #95981C
analogous
#1C5798 #1F1C98 #5D1C98
triadic
#1F1C98 #981F1C #1C981F
tetradic
#1F1C98 #981C57 #95981C #1C985D
square
#1F1C98 #981C57 #95981C #1C985D
split-complementary
#1F1C98 #985D1C #57981C
monochromatic
#0A0931 #141264 #1F1C98 #2A26CC #5350DF

Accessibility & contrast

On white

12.52
#1F1C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1F1C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1C98
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1C98#FFFFFF#000000##FFFFFF
##1F1C981.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9B
Deuteranopia (green-blind)
#002D96
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f1c98;
/* rgb */ color: rgb(31, 28, 152);
/* oklch */ color: oklch(34.3% 0.189 271.4);
Tailwind
colors: {
  custom: {
    50: '#725bb8',
    500: '#1f1c98',
    950: '#000000',
  },
}
SCSS
$custom: #1f1c98;
$custom-light: #725bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1c98",
  "rgb": {
    "r": 31,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 241.452,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34283,
    "c": 0.18944,
    "h": 271.4
  },
  "luminance": 0.03389
}

Semantic roles & 50–950 ramp

primary
#1F1C98
secondary
#BFC14E
accent
#EC3CE7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1C98

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

Preview Lab → · Contrast checker → · Palette generator →

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