#1F3E8E#1F3E8E

#1F3E8E is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.1% C 0.138 H 264.7°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#1F3E8E
RGBrgb(31, 62, 142)
HSLhsl(223, 64%, 34%)
HSVhsv(223, 78%, 56%)
CMYKcmyk(78.2%, 56.3%, 0%, 44.3%)
CIE-LABlab(28.61, 18.95, -47.65)
CIE-LCHlch(28.61, 51.28, 291.69°)
OKLaboklab(39.14% -0.0127 -0.1374)
OKLCHoklch(39.14% 0.138 264.7)
XYZxyz(7.1685, 5.6887, 26.3062)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E8E #8E6F1F
analogous
#1F768E #1F3E8E #381F8E
triadic
#1F3E8E #8E1F3E #3E8E1F
tetradic
#1F3E8E #8E1F76 #8E6F1F #1F8E38
square
#1F3E8E #8E1F76 #8E6F1F #1F8E38
split-complementary
#1F3E8E #8E381F #768E1F
monochromatic
#09122A #14285C #1F3E8E #2A54C0 #4F75D9

Accessibility & contrast

On white

9.82
#1F3E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#1F3E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3E8E
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E8E#FFFFFF#000000##FFFFFF
##1F3E8E1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f3e8e;
/* rgb */ color: rgb(31, 62, 142);
/* oklch */ color: oklch(39.1% 0.138 264.7);
Tailwind
colors: {
  custom: {
    50: '#6c72b0',
    500: '#1f3e8e',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e8e;
$custom-light: #6c72b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e8e",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 142
  },
  "hsl": {
    "h": 223.243,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39143,
    "c": 0.13797,
    "h": 264.7
  },
  "luminance": 0.0569
}

Semantic roles & 50–950 ramp

primary
#1F3E8E
secondary
#BB9D4D
accent
#B941E7
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #1F3E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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