#1F2584#1F2584

#1F2584 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.155 H 271.7°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#1F2584
RGBrgb(31, 37, 132)
HSLhsl(236, 62%, 32%)
HSVhsv(236, 77%, 52%)
CMYKcmyk(76.5%, 72%, 0%, 48.2%)
CIE-LABlab(21.13, 32.05, -53.65)
CIE-LCHlch(21.13, 62.49, 300.85°)
OKLaboklab(33.34% 0.0045 -0.1552)
OKLCHoklch(33.34% 0.155 271.7)
XYZxyz(5.3901, 3.2798, 22.1743)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2584 #847E1F
analogous
#1F5784 #1F2584 #4C1F84
triadic
#1F2584 #841F25 #25841F
tetradic
#1F2584 #841F57 #847E1F #1F844C
square
#1F2584 #841F57 #847E1F #1F844C
split-complementary
#1F2584 #844C1F #57841F
monochromatic
#080921 #131752 #1F2584 #2B33B6 #4951D4

Accessibility & contrast

On white

12.68
#1F2584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1F2584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2584
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2584#FFFFFF#000000##FFFFFF
##1F25841.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2584;
/* rgb */ color: rgb(31, 37, 132);
/* oklch */ color: oklch(33.3% 0.155 271.7);
Tailwind
colors: {
  custom: {
    50: '#6c60a9',
    500: '#1f2584',
    950: '#000000',
  },
}
SCSS
$custom: #1f2584;
$custom-light: #6c60a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2584",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 132
  },
  "hsl": {
    "h": 236.436,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33335,
    "c": 0.15529,
    "h": 271.7
  },
  "luminance": 0.0328
}

Semantic roles & 50–950 ramp

primary
#1F2584
secondary
#B7B048
accent
#DB43E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2584

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

Preview Lab → · Contrast checker → · Palette generator →

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