#1F2187#1F2187

#1F2187 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.164 H 272.1°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#1F2187
RGBrgb(31, 33, 135)
HSLhsl(239, 63%, 33%)
HSVhsv(239, 77%, 53%)
CMYKcmyk(77%, 75.6%, 0%, 47.1%)
CIE-LABlab(20.55, 35.63, -56.50)
CIE-LCHlch(20.55, 66.79, 302.24°)
OKLaboklab(33.01% 0.0061 -0.1635)
OKLCHoklch(33.01% 0.164 272.1)
XYZxyz(5.4806, 3.1277, 23.2318)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2187 #87851F
analogous
#1F5587 #1F2187 #511F87
triadic
#1F2187 #871F21 #21871F
tetradic
#1F2187 #871F55 #87851F #1F8751
square
#1F2187 #871F55 #87851F #1F8751
split-complementary
#1F2187 #87511F #55871F
monochromatic
#080923 #141555 #1F2187 #2A2DB9 #4B4DD6

Accessibility & contrast

On white

12.92
#1F2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2187
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2187#FFFFFF#000000##FFFFFF
##1F21871.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f2187;
/* rgb */ color: rgb(31, 33, 135);
/* oklch */ color: oklch(33.0% 0.164 272.1);
Tailwind
colors: {
  custom: {
    50: '#6d5dab',
    500: '#1f2187',
    950: '#000000',
  },
}
SCSS
$custom: #1f2187;
$custom-light: #6d5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2187",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 238.846,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33013,
    "c": 0.16363,
    "h": 272.1
  },
  "luminance": 0.03128
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F2187

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

Preview Lab → · Contrast checker → · Palette generator →

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