#1F3793#1F3793

#1F3793 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.1% C 0.154 H 267.2°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#1F3793
RGBrgb(31, 55, 147)
HSLhsl(228, 65%, 35%)
HSVhsv(228, 79%, 58%)
CMYKcmyk(78.9%, 62.6%, 0%, 42.4%)
CIE-LABlab(27.10, 25.74, -53.19)
CIE-LCHlch(27.10, 59.09, 295.83°)
OKLaboklab(38.14% -0.0075 -0.1538)
OKLCHoklch(38.14% 0.154 267.2)
XYZxyz(7.1959, 5.1295, 28.2089)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3793 #937B1F
analogous
#1F7193 #1F3793 #411F93
triadic
#1F3793 #931F37 #37931F
tetradic
#1F3793 #931F71 #937B1F #1F9341
square
#1F3793 #931F71 #937B1F #1F9341
split-complementary
#1F3793 #93411F #71931F
monochromatic
#0A112E #142460 #1F3793 #2A4AC6 #526EDA

Accessibility & contrast

On white

10.37
#1F3793 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#1F3793 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3793
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3793#FFFFFF#000000##FFFFFF
##1F37931.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004696
Deuteranopia (green-blind)
#003B91
Tritanopia (blue-blind)
#004F5F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f3793;
/* rgb */ color: rgb(31, 55, 147);
/* oklch */ color: oklch(38.1% 0.154 267.2);
Tailwind
colors: {
  custom: {
    50: '#6e6db4',
    500: '#1f3793',
    950: '#000000',
  },
}
SCSS
$custom: #1f3793;
$custom-light: #6e6db4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3793",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 147
  },
  "hsl": {
    "h": 227.586,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3814,
    "c": 0.15394,
    "h": 267.2
  },
  "luminance": 0.0513
}

Semantic roles & 50–950 ramp

primary
#1F3793
secondary
#BEA750
accent
#C540E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F3793

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

Preview Lab → · Contrast checker → · Palette generator →

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