#1F1788#1F1788

#1F1788 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.174 H 273.3°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#1F1788
RGBrgb(31, 23, 136)
HSLhsl(244, 71%, 31%)
HSVhsv(244, 83%, 53%)
CMYKcmyk(77.2%, 83.1%, 0%, 46.7%)
CIE-LABlab(18.72, 41.54, -60.15)
CIE-LCHlch(18.72, 73.10, 304.63°)
OKLaboklab(31.76% 0.01 -0.174)
OKLCHoklch(31.76% 0.174 273.3)
XYZxyz(5.3139, 2.6811, 23.5252)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1788 #808817
analogous
#174788 #1F1788 #571788
triadic
#1F1788 #881F17 #17881F
tetradic
#1F1788 #881747 #808817 #178857
square
#1F1788 #881747 #808817 #178857
split-complementary
#1F1788 #885717 #478817
monochromatic
#07051F #130E54 #1F1788 #2B20BC #473BDE

Accessibility & contrast

On white

13.67
#1F1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1F1788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1788
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1788#FFFFFF#000000##FFFFFF
##1F17881.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1788;
/* rgb */ color: rgb(31, 23, 136);
/* oklch */ color: oklch(31.8% 0.174 273.3);
Tailwind
colors: {
  custom: {
    50: '#6f58ac',
    500: '#1f1788',
    950: '#000000',
  },
}
SCSS
$custom: #1f1788;
$custom-light: #6f58ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1788",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 244.248,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3176,
    "c": 0.1743,
    "h": 273.3
  },
  "luminance": 0.02682
}

Semantic roles & 50–950 ramp

primary
#1F1788
secondary
#B3BC3F
accent
#EE3AE1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1F1788

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

Preview Lab → · Contrast checker → · Palette generator →

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