#1F2585#1F2585

#1F2585 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.157 H 271.6°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#1F2585
RGBrgb(31, 37, 133)
HSLhsl(236, 62%, 32%)
HSVhsv(236, 77%, 52%)
CMYKcmyk(76.7%, 72.2%, 0%, 47.8%)
CIE-LABlab(21.23, 32.42, -54.11)
CIE-LCHlch(21.23, 63.07, 300.93°)
OKLaboklab(33.44% 0.0044 -0.1566)
OKLCHoklch(33.44% 0.157 271.6)
XYZxyz(5.4588, 3.3073, 22.5364)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2585 #857F1F
analogous
#1F5885 #1F2585 #4C1F85
triadic
#1F2585 #851F25 #25851F
tetradic
#1F2585 #851F58 #857F1F #1F854C
square
#1F2585 #851F58 #857F1F #1F854C
split-complementary
#1F2585 #854C1F #58851F
monochromatic
#080922 #131753 #1F2585 #2B33B7 #4A52D5

Accessibility & contrast

On white

12.64
#1F2585 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2585
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2585#FFFFFF#000000##FFFFFF
##1F25851.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2585;
/* rgb */ color: rgb(31, 37, 133);
/* oklch */ color: oklch(33.4% 0.157 271.6);
Tailwind
colors: {
  custom: {
    50: '#6c60aa',
    500: '#1f2585',
    950: '#000000',
  },
}
SCSS
$custom: #1f2585;
$custom-light: #6c60aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2585",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 133
  },
  "hsl": {
    "h": 236.471,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3344,
    "c": 0.15663,
    "h": 271.6
  },
  "luminance": 0.03308
}

Semantic roles & 50–950 ramp

primary
#1F2585
secondary
#B7B149
accent
#DC43E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2585

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

Preview Lab → · Contrast checker → · Palette generator →

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