#1F2785#1F2785

#1F2785 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.154 H 271.2°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#1F2785
RGBrgb(31, 39, 133)
HSLhsl(235, 62%, 32%)
HSVhsv(235, 77%, 52%)
CMYKcmyk(76.7%, 70.7%, 0%, 47.8%)
CIE-LABlab(21.71, 31.12, -53.33)
CIE-LCHlch(21.71, 61.75, 300.27°)
OKLaboklab(33.78% 0.0032 -0.1543)
OKLCHoklch(33.78% 0.154 271.2)
XYZxyz(5.5228, 3.4352, 22.5578)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2785 #857D1F
analogous
#1F5A85 #1F2785 #4A1F85
triadic
#1F2785 #851F27 #27851F
tetradic
#1F2785 #851F5A #857D1F #1F854A
square
#1F2785 #851F5A #857D1F #1F854A
split-complementary
#1F2785 #854A1F #5A851F
monochromatic
#080A22 #131853 #1F2785 #2B36B7 #4A55D5

Accessibility & contrast

On white

12.45
#1F2785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F2785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2785
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2785#FFFFFF#000000##FFFFFF
##1F27851.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2785;
/* rgb */ color: rgb(31, 39, 133);
/* oklch */ color: oklch(33.8% 0.154 271.2);
Tailwind
colors: {
  custom: {
    50: '#6c61a9',
    500: '#1f2785',
    950: '#000000',
  },
}
SCSS
$custom: #1f2785;
$custom-light: #6c61a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2785",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 133
  },
  "hsl": {
    "h": 235.294,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33782,
    "c": 0.15433,
    "h": 271.2
  },
  "luminance": 0.03436
}

Semantic roles & 50–950 ramp

primary
#1F2785
secondary
#B7AF49
accent
#D943E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2785

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

Preview Lab → · Contrast checker → · Palette generator →

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