#1F3F9F#1F3F9F

#1F3F9F is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.8% C 0.160 H 265.5°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#1F3F9F
RGBrgb(31, 63, 159)
HSLhsl(225, 67%, 37%)
HSVhsv(225, 81%, 62%)
CMYKcmyk(80.5%, 60.4%, 0%, 37.6%)
CIE-LABlab(30.28, 24.99, -55.32)
CIE-LCHlch(30.28, 60.71, 294.31°)
OKLaboklab(40.83% -0.0126 -0.1599)
OKLCHoklch(40.83% 0.16 265.5)
XYZxyz(8.5984, 6.3485, 33.5664)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F9F #9F7F1F
analogous
#1F7F9F #1F3F9F #3F1F9F
triadic
#1F3F9F #9F1F3F #3F9F1F
tetradic
#1F3F9F #9F1F7F #9F7F1F #1F9F3F
square
#1F3F9F #9F1F7F #9F7F1F #1F9F3F
split-complementary
#1F3F9F #9F3F1F #7F9F1F
monochromatic
#0B1639 #152B6C #1F3F9F #2953D2 #5A7BDF

Accessibility & contrast

On white

9.25
#1F3F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#1F3F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F9F
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F9F#FFFFFF#000000##FFFFFF
##1F3F9F1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f3f9f;
/* rgb */ color: rgb(31, 63, 159);
/* oklch */ color: oklch(40.8% 0.160 265.5);
Tailwind
colors: {
  custom: {
    50: '#7173bc',
    500: '#1f3f9f',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f9f;
$custom-light: #7173bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f9f",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 159
  },
  "hsl": {
    "h": 225,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40825,
    "c": 0.1604,
    "h": 265.5
  },
  "luminance": 0.0635
}

Semantic roles & 50–950 ramp

primary
#1F3F9F
secondary
#C3A857
accent
#BF3EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F3F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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