#1F3E9D#1F3E9D

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

Color values

HEX#1F3E9D
RGBrgb(31, 62, 157)
HSLhsl(225, 67%, 37%)
HSVhsv(225, 80%, 62%)
CMYKcmyk(80.3%, 60.5%, 0%, 38.4%)
CIE-LABlab(29.84, 24.89, -54.83)
CIE-LCHlch(29.84, 60.21, 294.42°)
OKLaboklab(40.45% -0.012 -0.1585)
OKLCHoklch(40.45% 0.159 265.7)
XYZxyz(8.3714, 6.1699, 32.6415)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E9D #9D7E1F
analogous
#1F7D9D #1F3E9D #3F1F9D
triadic
#1F3E9D #9D1F3E #3E9D1F
tetradic
#1F3E9D #9D1F7D #9D7E1F #1F9D3F
square
#1F3E9D #9D1F7D #9D7E1F #1F9D3F
split-complementary
#1F3E9D #9D3F1F #7D9D1F
monochromatic
#0B1637 #152A6A #1F3E9D #2952D0 #5879DE

Accessibility & contrast

On white

9.40
#1F3E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#1F3E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3E9D
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E9D#FFFFFF#000000##FFFFFF
##1F3E9D1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#00419B
Tritanopia (blue-blind)
#005667
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f3e9d;
/* rgb */ color: rgb(31, 62, 157);
/* oklch */ color: oklch(40.4% 0.159 265.7);
Tailwind
colors: {
  custom: {
    50: '#7072bb',
    500: '#1f3e9d',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e9d;
$custom-light: #7072bb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e9d",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 157
  },
  "hsl": {
    "h": 225.238,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40445,
    "c": 0.15892,
    "h": 265.7
  },
  "luminance": 0.06171
}

Semantic roles & 50–950 ramp

primary
#1F3E9D
secondary
#C2A756
accent
#C03EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F3E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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