#1F1F95#1F1F95

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

Color values

HEX#1F1F95
RGBrgb(31, 31, 149)
HSLhsl(240, 66%, 35%)
HSVhsv(240, 79%, 58%)
CMYKcmyk(79.2%, 79.2%, 0%, 41.6%)
CIE-LABlab(21.73, 41.62, -63.26)
CIE-LCHlch(21.73, 75.72, 303.34°)
OKLaboklab(34.31% 0.0043 -0.1831)
OKLCHoklch(34.31% 0.183 271.3)
XYZxyz(6.4780, 3.4405, 28.7506)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1F95 #95951F
analogous
#1F5A95 #1F1F95 #5A1F95
triadic
#1F1F95 #951F1F #1F951F
tetradic
#1F1F95 #951F5A #95951F #1F955A
square
#1F1F95 #951F5A #95951F #1F955A
split-complementary
#1F1F95 #955A1F #5A951F
monochromatic
#0A0A30 #141462 #1F1F95 #2A2AC8 #5353DB

Accessibility & contrast

On white

12.44
#1F1F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1F95
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1F95#FFFFFF#000000##FFFFFF
##1F1F951.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#002E93
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f1f95;
/* rgb */ color: rgb(31, 31, 149);
/* oklch */ color: oklch(34.3% 0.183 271.3);
Tailwind
colors: {
  custom: {
    50: '#715db5',
    500: '#1f1f95',
    950: '#000000',
  },
}
SCSS
$custom: #1f1f95;
$custom-light: #715db5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1f95",
  "rgb": {
    "r": 31,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 240,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34314,
    "c": 0.1832,
    "h": 271.3
  },
  "luminance": 0.03441
}

Semantic roles & 50–950 ramp

primary
#1F1F95
secondary
#BFBF51
accent
#E93FE9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1F95

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

Preview Lab → · Contrast checker → · Palette generator →

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