#1F3E9A#1F3E9A

#1F3E9A is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.2% C 0.155 H 265.5°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#1F3E9A
RGBrgb(31, 62, 154)
HSLhsl(225, 66%, 36%)
HSVhsv(225, 80%, 60%)
CMYKcmyk(79.9%, 59.7%, 0%, 39.6%)
CIE-LABlab(29.59, 23.71, -53.41)
CIE-LCHlch(29.59, 58.44, 293.94°)
OKLaboklab(40.18% -0.0121 -0.1543)
OKLCHoklch(40.18% 0.155 265.5)
XYZxyz(8.1184, 6.0687, 31.3091)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E9A #9A7B1F
analogous
#1F7C9A #1F3E9A #3E1F9A
triadic
#1F3E9A #9A1F3E #3E9A1F
tetradic
#1F3E9A #9A1F7C #9A7B1F #1F9A3E
square
#1F3E9A #9A1F7C #9A7B1F #1F9A3E
split-complementary
#1F3E9A #9A3E1F #7C9A1F
monochromatic
#0A1534 #152967 #1F3E9A #2953CD #5678DD

Accessibility & contrast

On white

9.49
#1F3E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#1F3E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3E9A
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E9A#FFFFFF#000000##FFFFFF
##1F3E9A1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f3e9a;
/* rgb */ color: rgb(31, 62, 154);
/* oklch */ color: oklch(40.2% 0.155 265.5);
Tailwind
colors: {
  custom: {
    50: '#7072b9',
    500: '#1f3e9a',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e9a;
$custom-light: #7072b9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e9a",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 154
  },
  "hsl": {
    "h": 224.878,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40178,
    "c": 0.1548,
    "h": 265.5
  },
  "luminance": 0.0607
}

Semantic roles & 50–950 ramp

primary
#1F3E9A
secondary
#C1A554
accent
#BE3EE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #1F3E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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