#1F3F9D#1F3F9D

#1F3F9D is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.6% C 0.158 H 265.4°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#1F3F9D
RGBrgb(31, 63, 157)
HSLhsl(225, 67%, 37%)
HSVhsv(225, 80%, 62%)
CMYKcmyk(80.3%, 59.9%, 0%, 38.4%)
CIE-LABlab(30.11, 24.21, -54.38)
CIE-LCHlch(30.11, 59.53, 294.00°)
OKLaboklab(40.65% -0.0126 -0.1572)
OKLCHoklch(40.65% 0.158 265.4)
XYZxyz(8.4262, 6.2797, 32.6598)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F9D #9D7D1F
analogous
#1F7E9D #1F3F9D #3E1F9D
triadic
#1F3F9D #9D1F3F #3F9D1F
tetradic
#1F3F9D #9D1F7E #9D7D1F #1F9D3E
square
#1F3F9D #9D1F7E #9D7D1F #1F9D3E
split-complementary
#1F3F9D #9D3E1F #7E9D1F
monochromatic
#0B1637 #152A6A #1F3F9D #2954D0 #587ADE

Accessibility & contrast

On white

9.31
#1F3F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#1F3F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F9D
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F9D#FFFFFF#000000##FFFFFF
##1F3F9D1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#00419B
Tritanopia (blue-blind)
#005767
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f3f9d;
/* rgb */ color: rgb(31, 63, 157);
/* oklch */ color: oklch(40.6% 0.158 265.4);
Tailwind
colors: {
  custom: {
    50: '#7073bb',
    500: '#1f3f9d',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f9d;
$custom-light: #7073bb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f9d",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 157
  },
  "hsl": {
    "h": 224.762,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40647,
    "c": 0.15767,
    "h": 265.4
  },
  "luminance": 0.06281
}

Semantic roles & 50–950 ramp

primary
#1F3F9D
secondary
#C2A656
accent
#BE3EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F3F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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