#1F3F8F#1F3F8F

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

Color values

HEX#1F3F8F
RGBrgb(31, 63, 143)
HSLhsl(223, 64%, 34%)
HSVhsv(223, 78%, 56%)
CMYKcmyk(78.3%, 55.9%, 0%, 43.9%)
CIE-LABlab(28.98, 18.66, -47.67)
CIE-LCHlch(28.98, 51.19, 291.38°)
OKLaboklab(39.44% -0.0134 -0.1374)
OKLCHoklch(39.44% 0.138 264.4)
XYZxyz(7.2987, 5.8287, 26.7217)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F8F #8F6F1F
analogous
#1F778F #1F3F8F #371F8F
triadic
#1F3F8F #8F1F3F #3F8F1F
tetradic
#1F3F8F #8F1F77 #8F6F1F #1F8F37
square
#1F3F8F #8F1F77 #8F6F1F #1F8F37
split-complementary
#1F3F8F #8F371F #778F1F
monochromatic
#09132A #14295D #1F3F8F #2A55C1 #4F77D9

Accessibility & contrast

On white

9.70
#1F3F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#1F3F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F8F
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F8F#FFFFFF#000000##FFFFFF
##1F3F8F1.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f3f8f;
/* rgb */ color: rgb(31, 63, 143);
/* oklch */ color: oklch(39.4% 0.138 264.4);
Tailwind
colors: {
  custom: {
    50: '#6d73b0',
    500: '#1f3f8f',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f8f;
$custom-light: #6d73b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f8f",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 143
  },
  "hsl": {
    "h": 222.857,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39442,
    "c": 0.13809,
    "h": 264.4
  },
  "luminance": 0.05829
}

Semantic roles & 50–950 ramp

primary
#1F3F8F
secondary
#BC9C4E
accent
#B840E7
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F3F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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