#1F3D9A#1F3D9A

#1F3D9A is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.0% C 0.156 H 265.8°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#1F3D9A
RGBrgb(31, 61, 154)
HSLhsl(225, 66%, 36%)
HSVhsv(225, 80%, 60%)
CMYKcmyk(79.9%, 60.4%, 0%, 39.6%)
CIE-LABlab(29.31, 24.39, -53.86)
CIE-LCHlch(29.31, 59.12, 294.37°)
OKLaboklab(39.98% -0.0114 -0.1556)
OKLCHoklch(39.98% 0.156 265.8)
XYZxyz(8.0645, 5.9610, 31.2911)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D9A #9A7C1F
analogous
#1F7B9A #1F3D9A #3F1F9A
triadic
#1F3D9A #9A1F3D #3D9A1F
tetradic
#1F3D9A #9A1F7B #9A7C1F #1F9A3F
square
#1F3D9A #9A1F7B #9A7C1F #1F9A3F
split-complementary
#1F3D9A #9A3F1F #7B9A1F
monochromatic
#0A1534 #152967 #1F3D9A #2951CD #5677DD

Accessibility & contrast

On white

9.58
#1F3D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#1F3D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D9A
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D9A#FFFFFF#000000##FFFFFF
##1F3D9A1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9D
Deuteranopia (green-blind)
#004098
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f3d9a;
/* rgb */ color: rgb(31, 61, 154);
/* oklch */ color: oklch(40.0% 0.156 265.8);
Tailwind
colors: {
  custom: {
    50: '#7072b9',
    500: '#1f3d9a',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d9a;
$custom-light: #7072b9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d9a",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 154
  },
  "hsl": {
    "h": 225.366,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39975,
    "c": 0.15606,
    "h": 265.8
  },
  "luminance": 0.05962
}

Semantic roles & 50–950 ramp

primary
#1F3D9A
secondary
#C1A654
accent
#C03EE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #1F3D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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