#1F2087#1F2087

#1F2087 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.165 H 272.3°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#1F2087
RGBrgb(31, 32, 135)
HSLhsl(239, 63%, 33%)
HSVhsv(239, 77%, 53%)
CMYKcmyk(77%, 76.3%, 0%, 47.1%)
CIE-LABlab(20.33, 36.23, -56.85)
CIE-LCHlch(20.33, 67.42, 302.51°)
OKLaboklab(32.86% 0.0066 -0.1645)
OKLCHoklch(32.86% 0.165 272.3)
XYZxyz(5.4533, 3.0730, 23.2227)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2087 #87861F
analogous
#1F5487 #1F2087 #521F87
triadic
#1F2087 #871F20 #20871F
tetradic
#1F2087 #871F54 #87861F #1F8752
square
#1F2087 #871F54 #87861F #1F8752
split-complementary
#1F2087 #87521F #54871F
monochromatic
#080823 #141455 #1F2087 #2A2CB9 #4B4CD6

Accessibility & contrast

On white

13.00
#1F2087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1F2087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2087
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2087#FFFFFF#000000##FFFFFF
##1F20871.0013.001.6113.00
#FFFFFF13.001.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2087;
/* rgb */ color: rgb(31, 32, 135);
/* oklch */ color: oklch(32.9% 0.165 272.3);
Tailwind
colors: {
  custom: {
    50: '#6d5dab',
    500: '#1f2087',
    950: '#000000',
  },
}
SCSS
$custom: #1f2087;
$custom-light: #6d5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2087",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 239.423,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3286,
    "c": 0.16467,
    "h": 272.3
  },
  "luminance": 0.03074
}

Semantic roles & 50–950 ramp

primary
#1F2087
secondary
#B8B74A
accent
#E442E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2087

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

Preview Lab → · Contrast checker → · Palette generator →

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