#1F3E9E#1F3E9E

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

Color values

HEX#1F3E9E
RGBrgb(31, 62, 158)
HSLhsl(225, 67%, 37%)
HSVhsv(225, 80%, 62%)
CMYKcmyk(80.4%, 60.8%, 0%, 38%)
CIE-LABlab(29.92, 25.28, -55.29)
CIE-LCHlch(29.92, 60.80, 294.57°)
OKLaboklab(40.53% -0.0119 -0.1598)
OKLCHoklch(40.53% 0.16 265.7)
XYZxyz(8.4571, 6.2042, 33.0929)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E9E #9E7F1F
analogous
#1F7E9E #1F3E9E #3F1F9E
triadic
#1F3E9E #9E1F3E #3E9E1F
tetradic
#1F3E9E #9E1F7E #9E7F1F #1F9E3F
square
#1F3E9E #9E1F7E #9E7F1F #1F9E3F
split-complementary
#1F3E9E #9E3F1F #7E9E1F
monochromatic
#0B1638 #152A6B #1F3E9E #2952D1 #597ADE

Accessibility & contrast

On white

9.37
#1F3E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3E9E
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E9E#FFFFFF#000000##FFFFFF
##1F3E9E1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f3e9e;
/* rgb */ color: rgb(31, 62, 158);
/* oklch */ color: oklch(40.5% 0.160 265.7);
Tailwind
colors: {
  custom: {
    50: '#7172bb',
    500: '#1f3e9e',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e9e;
$custom-light: #7172bb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e9e",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 158
  },
  "hsl": {
    "h": 225.354,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40535,
    "c": 0.16029,
    "h": 265.7
  },
  "luminance": 0.06205
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F3E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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