#1F3B91#1F3B91

#1F3B91 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.8% C 0.146 H 266.0°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#1F3B91
RGBrgb(31, 59, 145)
HSLhsl(225, 65%, 35%)
HSVhsv(225, 79%, 57%)
CMYKcmyk(78.6%, 59.3%, 0%, 43.1%)
CIE-LABlab(28.01, 22.22, -50.47)
CIE-LCHlch(28.01, 55.14, 293.76°)
OKLaboklab(38.77% -0.0103 -0.1457)
OKLCHoklch(38.77% 0.146 266)
XYZxyz(7.2381, 5.4628, 27.4555)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3B91 #91751F
analogous
#1F7491 #1F3B91 #3C1F91
triadic
#1F3B91 #911F3B #3B911F
tetradic
#1F3B91 #911F74 #91751F #1F913C
square
#1F3B91 #911F74 #91751F #1F913C
split-complementary
#1F3B91 #913C1F #74911F
monochromatic
#09122C #14265F #1F3B91 #2A50C3 #5172DA

Accessibility & contrast

On white

10.03
#1F3B91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#1F3B91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3B91
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3B91#FFFFFF#000000##FFFFFF
##1F3B911.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004894
Deuteranopia (green-blind)
#003D8F
Tritanopia (blue-blind)
#005160
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f3b91;
/* rgb */ color: rgb(31, 59, 145);
/* oklch */ color: oklch(38.8% 0.146 266.0);
Tailwind
colors: {
  custom: {
    50: '#6d70b2',
    500: '#1f3b91',
    950: '#000000',
  },
}
SCSS
$custom: #1f3b91;
$custom-light: #6d70b2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3b91",
  "rgb": {
    "r": 31,
    "g": 59,
    "b": 145
  },
  "hsl": {
    "h": 225.263,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38769,
    "c": 0.14608,
    "h": 266
  },
  "luminance": 0.05464
}

Semantic roles & 50–950 ramp

primary
#1F3B91
secondary
#BDA24F
accent
#BF40E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F3B91

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

Preview Lab → · Contrast checker → · Palette generator →

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