#1F3497#1F3497

#1F3497 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.9% C 0.163 H 268.0°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#1F3497
RGBrgb(31, 52, 151)
HSLhsl(230, 66%, 36%)
HSVhsv(230, 79%, 59%)
CMYKcmyk(79.5%, 65.6%, 0%, 40.8%)
CIE-LABlab(26.68, 29.31, -56.33)
CIE-LCHlch(26.68, 63.50, 297.49°)
OKLaboklab(37.94% -0.0057 -0.163)
OKLCHoklch(37.94% 0.163 268)
XYZxyz(7.3770, 4.9808, 29.8448)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3497 #97821F
analogous
#1F7097 #1F3497 #461F97
triadic
#1F3497 #971F34 #34971F
tetradic
#1F3497 #971F70 #97821F #1F9746
square
#1F3497 #971F70 #97821F #1F9746
split-complementary
#1F3497 #97461F #70971F
monochromatic
#0A1131 #152364 #1F3497 #2945CA #546CDC

Accessibility & contrast

On white

10.52
#1F3497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#1F3497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3497
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3497#FFFFFF#000000##FFFFFF
##1F34971.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#004E60
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f3497;
/* rgb */ color: rgb(31, 52, 151);
/* oklch */ color: oklch(37.9% 0.163 268.0);
Tailwind
colors: {
  custom: {
    50: '#706bb7',
    500: '#1f3497',
    950: '#000000',
  },
}
SCSS
$custom: #1f3497;
$custom-light: #706bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3497",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 151
  },
  "hsl": {
    "h": 229.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37941,
    "c": 0.1631,
    "h": 268
  },
  "luminance": 0.04982
}

Semantic roles & 50–950 ramp

primary
#1F3497
secondary
#BFAC52
accent
#CB3FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1F3497

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

Preview Lab → · Contrast checker → · Palette generator →

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