#1F2887#1F2887

#1F2887 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.156 H 270.9°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#1F2887
RGBrgb(31, 40, 135)
HSLhsl(235, 63%, 33%)
HSVhsv(235, 77%, 53%)
CMYKcmyk(77%, 70.4%, 0%, 47.1%)
CIE-LABlab(22.15, 31.22, -53.85)
CIE-LCHlch(22.15, 62.25, 300.10°)
OKLaboklab(34.16% 0.0024 -0.1558)
OKLCHoklch(34.16% 0.156 270.9)
XYZxyz(5.6956, 3.5576, 23.3035)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2887 #877E1F
analogous
#1F5C87 #1F2887 #4A1F87
triadic
#1F2887 #871F28 #28871F
tetradic
#1F2887 #871F5C #877E1F #1F874A
square
#1F2887 #871F5C #877E1F #1F874A
split-complementary
#1F2887 #874A1F #5C871F
monochromatic
#080B23 #141955 #1F2887 #2A37B9 #4B57D6

Accessibility & contrast

On white

12.27
#1F2887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1F2887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2887
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2887#FFFFFF#000000##FFFFFF
##1F28871.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2887;
/* rgb */ color: rgb(31, 40, 135);
/* oklch */ color: oklch(34.2% 0.156 270.9);
Tailwind
colors: {
  custom: {
    50: '#6d62ab',
    500: '#1f2887',
    950: '#000000',
  },
}
SCSS
$custom: #1f2887;
$custom-light: #6d62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2887",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 234.808,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34164,
    "c": 0.15585,
    "h": 270.9
  },
  "luminance": 0.03558
}

Semantic roles & 50–950 ramp

primary
#1F2887
secondary
#B8AF4A
accent
#D842E6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2887

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

Preview Lab → · Contrast checker → · Palette generator →

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