#1F2188#1F2188

#1F2188 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.165 H 272.1°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#1F2188
RGBrgb(31, 33, 136)
HSLhsl(239, 63%, 33%)
HSVhsv(239, 77%, 53%)
CMYKcmyk(77.2%, 75.7%, 0%, 46.7%)
CIE-LABlab(20.66, 35.99, -56.94)
CIE-LCHlch(20.66, 67.36, 302.29°)
OKLaboklab(33.12% 0.006 -0.1648)
OKLCHoklch(33.12% 0.165 272.1)
XYZxyz(5.5514, 3.1560, 23.6044)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2188 #88861F
analogous
#1F5588 #1F2188 #511F88
triadic
#1F2188 #881F21 #21881F
tetradic
#1F2188 #881F55 #88861F #1F8851
square
#1F2188 #881F55 #88861F #1F8851
split-complementary
#1F2188 #88511F #55881F
monochromatic
#080924 #141556 #1F2188 #2A2DBA #4B4ED6

Accessibility & contrast

On white

12.87
#1F2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1F2188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2188
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2188#FFFFFF#000000##FFFFFF
##1F21881.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#002D86
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2188;
/* rgb */ color: rgb(31, 33, 136);
/* oklch */ color: oklch(33.1% 0.165 272.1);
Tailwind
colors: {
  custom: {
    50: '#6e5dac',
    500: '#1f2188',
    950: '#000000',
  },
}
SCSS
$custom: #1f2188;
$custom-light: #6e5dac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2188",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 238.857,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33123,
    "c": 0.16492,
    "h": 272.1
  },
  "luminance": 0.03157
}

Semantic roles & 50–950 ramp

primary
#1F2188
secondary
#B9B74A
accent
#E342E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2188

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

Preview Lab → · Contrast checker → · Palette generator →

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