#1F2684#1F2684

#1F2684 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.154 H 271.5°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#1F2684
RGBrgb(31, 38, 132)
HSLhsl(236, 62%, 32%)
HSVhsv(236, 77%, 52%)
CMYKcmyk(76.5%, 71.2%, 0%, 48.2%)
CIE-LABlab(21.37, 31.40, -53.26)
CIE-LCHlch(21.37, 61.83, 300.52°)
OKLaboklab(33.51% 0.0039 -0.1541)
OKLCHoklch(33.51% 0.154 271.5)
XYZxyz(5.4216, 3.3429, 22.1848)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2684 #847D1F
analogous
#1F5884 #1F2684 #4B1F84
triadic
#1F2684 #841F26 #26841F
tetradic
#1F2684 #841F58 #847D1F #1F844B
square
#1F2684 #841F58 #847D1F #1F844B
split-complementary
#1F2684 #844B1F #58841F
monochromatic
#080921 #131852 #1F2684 #2B34B6 #4953D4

Accessibility & contrast

On white

12.59
#1F2684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1F2684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2684
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2684#FFFFFF#000000##FFFFFF
##1F26841.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003887
Deuteranopia (green-blind)
#002E82
Tritanopia (blue-blind)
#004052
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2684;
/* rgb */ color: rgb(31, 38, 132);
/* oklch */ color: oklch(33.5% 0.154 271.5);
Tailwind
colors: {
  custom: {
    50: '#6c61a9',
    500: '#1f2684',
    950: '#000000',
  },
}
SCSS
$custom: #1f2684;
$custom-light: #6c61a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2684",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 132
  },
  "hsl": {
    "h": 235.842,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33505,
    "c": 0.15415,
    "h": 271.5
  },
  "luminance": 0.03343
}

Semantic roles & 50–950 ramp

primary
#1F2684
secondary
#B7AF48
accent
#DA43E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2684

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

Preview Lab → · Contrast checker → · Palette generator →

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