#1F3A97#1F3A97

#1F3A97 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.1% C 0.156 H 266.5°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#1F3A97
RGBrgb(31, 58, 151)
HSLhsl(227, 66%, 36%)
HSVhsv(227, 79%, 59%)
CMYKcmyk(79.5%, 61.6%, 0%, 40.8%)
CIE-LABlab(28.25, 25.26, -53.76)
CIE-LCHlch(28.25, 59.40, 295.17°)
OKLaboklab(39.1% -0.0095 -0.1554)
OKLCHoklch(39.1% 0.156 266.5)
XYZxyz(7.6621, 5.5509, 29.9398)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3A97 #977C1F
analogous
#1F7697 #1F3A97 #401F97
triadic
#1F3A97 #971F3A #3A971F
tetradic
#1F3A97 #971F76 #977C1F #1F9740
square
#1F3A97 #971F76 #977C1F #1F9740
split-complementary
#1F3A97 #97401F #76971F
monochromatic
#0A1331 #152664 #1F3A97 #294ECA #5473DC

Accessibility & contrast

On white

9.95
#1F3A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#1F3A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3A97
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3A97#FFFFFF#000000##FFFFFF
##1F3A971.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#005262
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f3a97;
/* rgb */ color: rgb(31, 58, 151);
/* oklch */ color: oklch(39.1% 0.156 266.5);
Tailwind
colors: {
  custom: {
    50: '#6f6fb6',
    500: '#1f3a97',
    950: '#000000',
  },
}
SCSS
$custom: #1f3a97;
$custom-light: #6f6fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3a97",
  "rgb": {
    "r": 31,
    "g": 58,
    "b": 151
  },
  "hsl": {
    "h": 226.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39103,
    "c": 0.1557,
    "h": 266.5
  },
  "luminance": 0.05552
}

Semantic roles & 50–950 ramp

primary
#1F3A97
secondary
#BFA752
accent
#C33FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #1F3A97

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

Preview Lab → · Contrast checker → · Palette generator →

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