#1F3589#1F3589

#1F3589 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.8% C 0.143 H 267.5°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#1F3589
RGBrgb(31, 53, 137)
HSLhsl(228, 63%, 33%)
HSVhsv(228, 77%, 54%)
CMYKcmyk(77.4%, 61.3%, 0%, 46.3%)
CIE-LABlab(25.69, 23.20, -49.30)
CIE-LCHlch(25.69, 54.49, 295.20°)
OKLaboklab(36.82% -0.0062 -0.1424)
OKLCHoklch(36.82% 0.143 267.5)
XYZxyz(6.3520, 4.6430, 24.2235)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3589 #89731F
analogous
#1F6A89 #1F3589 #3E1F89
triadic
#1F3589 #891F35 #35891F
tetradic
#1F3589 #891F6A #89731F #1F893E
square
#1F3589 #891F6A #89731F #1F893E
split-complementary
#1F3589 #893E1F #6A891F
monochromatic
#080E25 #142257 #1F3589 #2A48BB #4C69D6

Accessibility & contrast

On white

10.89
#1F3589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#1F3589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3589
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3589#FFFFFF#000000##FFFFFF
##1F35891.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428C
Deuteranopia (green-blind)
#003887
Tritanopia (blue-blind)
#004A59
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f3589;
/* rgb */ color: rgb(31, 53, 137);
/* oklch */ color: oklch(36.8% 0.143 267.5);
Tailwind
colors: {
  custom: {
    50: '#6c6bac',
    500: '#1f3589',
    950: '#000000',
  },
}
SCSS
$custom: #1f3589;
$custom-light: #6c6bac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3589",
  "rgb": {
    "r": 31,
    "g": 53,
    "b": 137
  },
  "hsl": {
    "h": 227.547,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36824,
    "c": 0.14253,
    "h": 267.5
  },
  "luminance": 0.04644
}

Semantic roles & 50–950 ramp

primary
#1F3589
secondary
#B9A24B
accent
#C442E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F3589

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

Preview Lab → · Contrast checker → · Palette generator →

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