#1F3F8E#1F3F8E

#1F3F8E is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.4% C 0.137 H 264.3°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#1F3F8E
RGBrgb(31, 63, 142)
HSLhsl(223, 64%, 34%)
HSVhsv(223, 78%, 56%)
CMYKcmyk(78.2%, 55.6%, 0%, 44.3%)
CIE-LABlab(28.90, 18.26, -47.18)
CIE-LCHlch(28.90, 50.59, 291.16°)
OKLaboklab(39.36% -0.0135 -0.136)
OKLCHoklch(39.36% 0.137 264.3)
XYZxyz(7.2233, 5.7985, 26.3245)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F8E #8E6E1F
analogous
#1F778E #1F3F8E #371F8E
triadic
#1F3F8E #8E1F3F #3F8E1F
tetradic
#1F3F8E #8E1F77 #8E6E1F #1F8E37
square
#1F3F8E #8E1F77 #8E6E1F #1F8E37
split-complementary
#1F3F8E #8E371F #778E1F
monochromatic
#09122A #14295C #1F3F8E #2A55C0 #4F77D9

Accessibility & contrast

On white

9.72
#1F3F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#1F3F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F8E
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F8E#FFFFFF#000000##FFFFFF
##1F3F8E1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f3f8e;
/* rgb */ color: rgb(31, 63, 142);
/* oklch */ color: oklch(39.4% 0.137 264.3);
Tailwind
colors: {
  custom: {
    50: '#6c73b0',
    500: '#1f3f8e',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f8e;
$custom-light: #6c73b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f8e",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 142
  },
  "hsl": {
    "h": 222.703,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39358,
    "c": 0.13667,
    "h": 264.3
  },
  "luminance": 0.05799
}

Semantic roles & 50–950 ramp

primary
#1F3F8E
secondary
#BB9C4D
accent
#B741E7
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #1F3F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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