#1F2C87#1F2C87

#1F2C87 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.151 H 270.0°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#1F2C87
RGBrgb(31, 44, 135)
HSLhsl(233, 63%, 33%)
HSVhsv(233, 77%, 53%)
CMYKcmyk(77%, 67.4%, 0%, 47.1%)
CIE-LABlab(23.14, 28.57, -52.23)
CIE-LCHlch(23.14, 59.53, 298.67°)
OKLaboklab(34.88% 0 -0.1511)
OKLCHoklch(34.88% 0.151 270)
XYZxyz(5.8374, 3.8413, 23.3508)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C87 #877A1F
analogous
#1F6087 #1F2C87 #461F87
triadic
#1F2C87 #871F2C #2C871F
tetradic
#1F2C87 #871F60 #877A1F #1F8746
square
#1F2C87 #871F60 #877A1F #1F8746
split-complementary
#1F2C87 #87461F #60871F
monochromatic
#080C23 #141C55 #1F2C87 #2A3CB9 #4B5CD6

Accessibility & contrast

On white

11.88
#1F2C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1F2C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C87
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C87#FFFFFF#000000##FFFFFF
##1F2C871.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2c87;
/* rgb */ color: rgb(31, 44, 135);
/* oklch */ color: oklch(34.9% 0.151 270.0);
Tailwind
colors: {
  custom: {
    50: '#6c65ab',
    500: '#1f2c87',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c87;
$custom-light: #6c65ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c87",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 232.5,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34883,
    "c": 0.15107,
    "h": 270
  },
  "luminance": 0.03842
}

Semantic roles & 50–950 ramp

primary
#1F2C87
secondary
#B8AA4A
accent
#D142E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #1F2C87

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

Preview Lab → · Contrast checker → · Palette generator →

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