#1F3E8F#1F3E8F

#1F3E8F is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.2% C 0.139 H 264.8°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#1F3E8F
RGBrgb(31, 62, 143)
HSLhsl(223, 64%, 34%)
HSVhsv(223, 78%, 56%)
CMYKcmyk(78.3%, 56.6%, 0%, 43.9%)
CIE-LABlab(28.69, 19.35, -48.13)
CIE-LCHlch(28.69, 51.88, 291.90°)
OKLaboklab(39.23% -0.0126 -0.1388)
OKLCHoklch(39.23% 0.139 264.8)
XYZxyz(7.2439, 5.7189, 26.7034)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E8F #8F701F
analogous
#1F768F #1F3E8F #381F8F
triadic
#1F3E8F #8F1F3E #3E8F1F
tetradic
#1F3E8F #8F1F76 #8F701F #1F8F38
square
#1F3E8F #8F1F76 #8F701F #1F8F38
split-complementary
#1F3E8F #8F381F #768F1F
monochromatic
#09122A #14285D #1F3E8F #2A54C1 #4F76D9

Accessibility & contrast

On white

9.79
#1F3E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3E8F
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E8F#FFFFFF#000000##FFFFFF
##1F3E8F1.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f3e8f;
/* rgb */ color: rgb(31, 62, 143);
/* oklch */ color: oklch(39.2% 0.139 264.8);
Tailwind
colors: {
  custom: {
    50: '#6d72b0',
    500: '#1f3e8f',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e8f;
$custom-light: #6d72b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e8f",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 143
  },
  "hsl": {
    "h": 223.393,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39227,
    "c": 0.13939,
    "h": 264.8
  },
  "luminance": 0.0572
}

Semantic roles & 50–950 ramp

primary
#1F3E8F
secondary
#BC9D4E
accent
#B940E7
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F3E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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