#1F3580#1F3580

#1F3580 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.0% C 0.130 H 267.1°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#1F3580
RGBrgb(31, 53, 128)
HSLhsl(226, 61%, 31%)
HSVhsv(226, 76%, 50%)
CMYKcmyk(75.8%, 58.6%, 0%, 49.8%)
CIE-LABlab(24.94, 19.63, -44.91)
CIE-LCHlch(24.94, 49.01, 293.62°)
OKLaboklab(36.02% -0.0065 -0.1295)
OKLCHoklch(36.02% 0.13 267.1)
XYZxyz(5.7331, 4.3954, 20.9641)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3580 #806A1F
analogous
#1F6580 #1F3580 #391F80
triadic
#1F3580 #801F35 #35801F
tetradic
#1F3580 #801F65 #806A1F #1F8039
square
#1F3580 #801F65 #806A1F #1F8039
split-complementary
#1F3580 #80391F #65801F
monochromatic
#070C1D #13214F #1F3580 #2B49B1 #4767D2

Accessibility & contrast

On white

11.17
#1F3580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#1F3580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3580
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3580#FFFFFF#000000##FFFFFF
##1F35801.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004083
Deuteranopia (green-blind)
#00377F
Tritanopia (blue-blind)
#004855
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f3580;
/* rgb */ color: rgb(31, 53, 128);
/* oklch */ color: oklch(36.0% 0.130 267.1);
Tailwind
colors: {
  custom: {
    50: '#6a6ba5',
    500: '#1f3580',
    950: '#000000',
  },
}
SCSS
$custom: #1f3580;
$custom-light: #6a6ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3580",
  "rgb": {
    "r": 31,
    "g": 53,
    "b": 128
  },
  "hsl": {
    "h": 226.392,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36024,
    "c": 0.12964,
    "h": 267.1
  },
  "luminance": 0.04396
}

Semantic roles & 50–950 ramp

primary
#1F3580
secondary
#B39B48
accent
#C044E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F3580

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

Preview Lab → · Contrast checker → · Palette generator →

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