#1F3F91#1F3F91

#1F3F91 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.6% C 0.141 H 264.6°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#1F3F91
RGBrgb(31, 63, 145)
HSLhsl(223, 65%, 35%)
HSVhsv(223, 79%, 57%)
CMYKcmyk(78.6%, 56.6%, 0%, 43.1%)
CIE-LABlab(29.13, 19.46, -48.65)
CIE-LCHlch(29.13, 52.39, 291.80°)
OKLaboklab(39.61% -0.0133 -0.1403)
OKLCHoklch(39.61% 0.141 264.6)
XYZxyz(7.4516, 5.8898, 27.5267)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F91 #91711F
analogous
#1F7891 #1F3F91 #381F91
triadic
#1F3F91 #911F3F #3F911F
tetradic
#1F3F91 #911F78 #91711F #1F9138
square
#1F3F91 #911F78 #91711F #1F9138
split-complementary
#1F3F91 #91381F #78911F
monochromatic
#09132C #14295F #1F3F91 #2A55C3 #5177DA

Accessibility & contrast

On white

9.64
#1F3F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#1F3F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F91
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F91#FFFFFF#000000##FFFFFF
##1F3F911.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A94
Deuteranopia (green-blind)
#00408F
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f3f91;
/* rgb */ color: rgb(31, 63, 145);
/* oklch */ color: oklch(39.6% 0.141 264.6);
Tailwind
colors: {
  custom: {
    50: '#6d73b2',
    500: '#1f3f91',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f91;
$custom-light: #6d73b2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f91",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 145
  },
  "hsl": {
    "h": 223.158,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39609,
    "c": 0.14094,
    "h": 264.6
  },
  "luminance": 0.05891
}

Semantic roles & 50–950 ramp

primary
#1F3F91
secondary
#BD9E4F
accent
#B940E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F3F91

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

Preview Lab → · Contrast checker → · Palette generator →

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