#1F2885#1F2885

#1F2885 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.153 H 271.0°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#1F2885
RGBrgb(31, 40, 133)
HSLhsl(235, 62%, 32%)
HSVhsv(235, 77%, 52%)
CMYKcmyk(76.7%, 69.9%, 0%, 47.8%)
CIE-LABlab(21.95, 30.47, -52.93)
CIE-LCHlch(21.95, 61.07, 299.93°)
OKLaboklab(33.96% 0.0026 -0.1531)
OKLCHoklch(33.96% 0.153 271)
XYZxyz(5.5561, 3.5018, 22.5688)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2885 #857C1F
analogous
#1F5B85 #1F2885 #491F85
triadic
#1F2885 #851F28 #28851F
tetradic
#1F2885 #851F5B #857C1F #1F8549
square
#1F2885 #851F5B #857C1F #1F8549
split-complementary
#1F2885 #85491F #5B851F
monochromatic
#080A22 #131953 #1F2885 #2B37B7 #4A56D5

Accessibility & contrast

On white

12.35
#1F2885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F2885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2885
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2885#FFFFFF#000000##FFFFFF
##1F28851.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2885;
/* rgb */ color: rgb(31, 40, 133);
/* oklch */ color: oklch(34.0% 0.153 271.0);
Tailwind
colors: {
  custom: {
    50: '#6c62a9',
    500: '#1f2885',
    950: '#000000',
  },
}
SCSS
$custom: #1f2885;
$custom-light: #6c62a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2885",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 133
  },
  "hsl": {
    "h": 234.706,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33958,
    "c": 0.15315,
    "h": 271
  },
  "luminance": 0.03502
}

Semantic roles & 50–950 ramp

primary
#1F2885
secondary
#B7AD49
accent
#D743E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2885

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

Preview Lab → · Contrast checker → · Palette generator →

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