#1F3585#1F3585

#1F3585 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.5% C 0.137 H 267.4°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#1F3585
RGBrgb(31, 53, 133)
HSLhsl(227, 62%, 32%)
HSVhsv(227, 77%, 52%)
CMYKcmyk(76.7%, 60.2%, 0%, 47.8%)
CIE-LABlab(25.35, 21.62, -47.36)
CIE-LCHlch(25.35, 52.06, 294.53°)
OKLaboklab(36.46% -0.0063 -0.1367)
OKLCHoklch(36.46% 0.137 267.4)
XYZxyz(6.0703, 4.5303, 22.7403)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3585 #856F1F
analogous
#1F6885 #1F3585 #3C1F85
triadic
#1F3585 #851F35 #35851F
tetradic
#1F3585 #851F68 #856F1F #1F853C
square
#1F3585 #851F68 #856F1F #1F853C
split-complementary
#1F3585 #853C1F #68851F
monochromatic
#080D22 #132153 #1F3585 #2B49B7 #4A68D5

Accessibility & contrast

On white

11.02
#1F3585 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#1F3585 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3585
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3585#FFFFFF#000000##FFFFFF
##1F35851.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004188
Deuteranopia (green-blind)
#003883
Tritanopia (blue-blind)
#004957
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f3585;
/* rgb */ color: rgb(31, 53, 133);
/* oklch */ color: oklch(36.5% 0.137 267.4);
Tailwind
colors: {
  custom: {
    50: '#6b6ba9',
    500: '#1f3585',
    950: '#000000',
  },
}
SCSS
$custom: #1f3585;
$custom-light: #6b6ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3585",
  "rgb": {
    "r": 31,
    "g": 53,
    "b": 133
  },
  "hsl": {
    "h": 227.059,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36464,
    "c": 0.13684,
    "h": 267.4
  },
  "luminance": 0.04531
}

Semantic roles & 50–950 ramp

primary
#1F3585
secondary
#B79F49
accent
#C243E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1F3585

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

Preview Lab → · Contrast checker → · Palette generator →

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