#1F3F9A#1F3F9A

#1F3F9A is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.4% C 0.154 H 265.2°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#1F3F9A
RGBrgb(31, 63, 154)
HSLhsl(224, 66%, 36%)
HSVhsv(224, 80%, 60%)
CMYKcmyk(79.9%, 59.1%, 0%, 39.6%)
CIE-LABlab(29.86, 23.03, -52.97)
CIE-LCHlch(29.86, 57.76, 293.50°)
OKLaboklab(40.38% -0.0127 -0.153)
OKLCHoklch(40.38% 0.154 265.2)
XYZxyz(8.1733, 6.1785, 31.3274)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F9A #9A7A1F
analogous
#1F7D9A #1F3F9A #3D1F9A
triadic
#1F3F9A #9A1F3F #3F9A1F
tetradic
#1F3F9A #9A1F7D #9A7A1F #1F9A3D
square
#1F3F9A #9A1F7D #9A7A1F #1F9A3D
split-complementary
#1F3F9A #9A3D1F #7D9A1F
monochromatic
#0A1534 #152A67 #1F3F9A #2954CD #5679DD

Accessibility & contrast

On white

9.39
#1F3F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#1F3F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F9A
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F9A#FFFFFF#000000##FFFFFF
##1F3F9A1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9D
Deuteranopia (green-blind)
#004198
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f3f9a;
/* rgb */ color: rgb(31, 63, 154);
/* oklch */ color: oklch(40.4% 0.154 265.2);
Tailwind
colors: {
  custom: {
    50: '#6f73b9',
    500: '#1f3f9a',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f9a;
$custom-light: #6f73b9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f9a",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 154
  },
  "hsl": {
    "h": 224.39,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40383,
    "c": 0.15353,
    "h": 265.2
  },
  "luminance": 0.06179
}

Semantic roles & 50–950 ramp

primary
#1F3F9A
secondary
#C1A454
accent
#BD3EE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #1F3F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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