#1F1988#1F1988

#1F1988 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.173 H 273.1°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#1F1988
RGBrgb(31, 25, 136)
HSLhsl(243, 69%, 32%)
HSVhsv(243, 82%, 53%)
CMYKcmyk(77.2%, 81.6%, 0%, 46.7%)
CIE-LABlab(19.07, 40.51, -59.57)
CIE-LCHlch(19.07, 72.04, 304.22°)
OKLaboklab(32.01% 0.0093 -0.1723)
OKLCHoklch(32.01% 0.173 273.1)
XYZxyz(5.3552, 2.7636, 23.5390)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1988 #828819
analogous
#194B88 #1F1988 #571988
triadic
#1F1988 #881F19 #19881F
tetradic
#1F1988 #88194B #828819 #198857
square
#1F1988 #88194B #828819 #198857
split-complementary
#1F1988 #885719 #4B8819
monochromatic
#070621 #130F54 #1F1988 #2B23BC #4840DC

Accessibility & contrast

On white

13.52
#1F1988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1F1988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1988
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1988#FFFFFF#000000##FFFFFF
##1F19881.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002986
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f1988;
/* rgb */ color: rgb(31, 25, 136);
/* oklch */ color: oklch(32.0% 0.173 273.1);
Tailwind
colors: {
  custom: {
    50: '#6e59ac',
    500: '#1f1988',
    950: '#000000',
  },
}
SCSS
$custom: #1f1988;
$custom-light: #6e59ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1988",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 243.243,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32005,
    "c": 0.1726,
    "h": 273.1
  },
  "luminance": 0.02764
}

Semantic roles & 50–950 ramp

primary
#1F1988
secondary
#B5BB41
accent
#EC3CE2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1F1988

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

Preview Lab → · Contrast checker → · Palette generator →

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