#1F1888#1F1888

#1F1888 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.173 H 273.2°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#1F1888
RGBrgb(31, 24, 136)
HSLhsl(244, 70%, 31%)
HSVhsv(244, 82%, 53%)
CMYKcmyk(77.2%, 82.4%, 0%, 46.7%)
CIE-LABlab(18.89, 41.03, -59.86)
CIE-LCHlch(18.89, 72.58, 304.43°)
OKLaboklab(31.88% 0.0097 -0.1732)
OKLCHoklch(31.88% 0.173 273.2)
XYZxyz(5.3342, 2.7216, 23.5320)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1888 #818818
analogous
#184988 #1F1888 #571888
triadic
#1F1888 #881F18 #18881F
tetradic
#1F1888 #881849 #818818 #188857
square
#1F1888 #881849 #818818 #188857
split-complementary
#1F1888 #885718 #498818
monochromatic
#070620 #130F54 #1F1888 #2B21BC #473EDD

Accessibility & contrast

On white

13.60
#1F1888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1888
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1888#FFFFFF#000000##FFFFFF
##1F18881.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.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: #1f1888;
/* rgb */ color: rgb(31, 24, 136);
/* oklch */ color: oklch(31.9% 0.173 273.2);
Tailwind
colors: {
  custom: {
    50: '#6e58ac',
    500: '#1f1888',
    950: '#000000',
  },
}
SCSS
$custom: #1f1888;
$custom-light: #6e58ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1888",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 136
  },
  "hsl": {
    "h": 243.75,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31881,
    "c": 0.17346,
    "h": 273.2
  },
  "luminance": 0.02722
}

Semantic roles & 50–950 ramp

primary
#1F1888
secondary
#B4BC40
accent
#ED3BE2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1F1888

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

Preview Lab → · Contrast checker → · Palette generator →

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