#1F1D98#1F1D98

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

Color values

HEX#1F1D98
RGBrgb(31, 29, 152)
HSLhsl(241, 68%, 35%)
HSVhsv(241, 81%, 60%)
CMYKcmyk(79.6%, 80.9%, 0%, 40.4%)
CIE-LABlab(21.71, 43.68, -65.14)
CIE-LCHlch(21.71, 78.43, 303.85°)
OKLaboklab(34.41% 0.0043 -0.1886)
OKLCHoklch(34.41% 0.189 271.3)
XYZxyz(6.6700, 3.4363, 30.0114)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1D98 #96981D
analogous
#1D5898 #1F1D98 #5D1D98
triadic
#1F1D98 #981F1D #1D981F
tetradic
#1F1D98 #981D58 #96981D #1D985D
square
#1F1D98 #981D58 #96981D #1D985D
split-complementary
#1F1D98 #985D1D #58981D
monochromatic
#0A0931 #151365 #1F1D98 #2927CB #5452DE

Accessibility & contrast

On white

12.45
#1F1D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F1D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1D98
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1D98#FFFFFF#000000##FFFFFF
##1F1D981.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1d98;
/* rgb */ color: rgb(31, 29, 152);
/* oklch */ color: oklch(34.4% 0.189 271.3);
Tailwind
colors: {
  custom: {
    50: '#725cb8',
    500: '#1f1d98',
    950: '#000000',
  },
}
SCSS
$custom: #1f1d98;
$custom-light: #725cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1d98",
  "rgb": {
    "r": 31,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 240.976,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34407,
    "c": 0.18861,
    "h": 271.3
  },
  "luminance": 0.03437
}

Semantic roles & 50–950 ramp

primary
#1F1D98
secondary
#BFC150
accent
#EB3DE8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1D98

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

Preview Lab → · Contrast checker → · Palette generator →

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