#1F2C84#1F2C84

#1F2C84 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.147 H 270.1°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#1F2C84
RGBrgb(31, 44, 132)
HSLhsl(232, 62%, 32%)
HSVhsv(232, 77%, 52%)
CMYKcmyk(76.5%, 66.7%, 0%, 48.2%)
CIE-LABlab(22.85, 27.42, -50.82)
CIE-LCHlch(22.85, 57.74, 298.35°)
OKLaboklab(34.59% 0.0002 -0.1469)
OKLCHoklch(34.59% 0.147 270.1)
XYZxyz(5.6292, 3.7580, 22.2540)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C84 #84771F
analogous
#1F5F84 #1F2C84 #451F84
triadic
#1F2C84 #841F2C #2C841F
tetradic
#1F2C84 #841F5F #84771F #1F8445
square
#1F2C84 #841F5F #84771F #1F8445
split-complementary
#1F2C84 #84451F #5F841F
monochromatic
#080B21 #131B52 #1F2C84 #2B3DB6 #495BD4

Accessibility & contrast

On white

11.99
#1F2C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1F2C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C84
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C84#FFFFFF#000000##FFFFFF
##1F2C841.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B87
Deuteranopia (green-blind)
#003282
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2c84;
/* rgb */ color: rgb(31, 44, 132);
/* oklch */ color: oklch(34.6% 0.147 270.1);
Tailwind
colors: {
  custom: {
    50: '#6b65a9',
    500: '#1f2c84',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c84;
$custom-light: #6b65a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c84",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 132
  },
  "hsl": {
    "h": 232.277,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34587,
    "c": 0.14694,
    "h": 270.1
  },
  "luminance": 0.03759
}

Semantic roles & 50–950 ramp

primary
#1F2C84
secondary
#B7A848
accent
#D043E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F

Preview Lab

Preview with #1F2C84

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

Preview Lab → · Contrast checker → · Palette generator →

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