#1F3794#1F3794

#1F3794 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.2% C 0.155 H 267.2°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#1F3794
RGBrgb(31, 55, 148)
HSLhsl(228, 65%, 35%)
HSVhsv(228, 79%, 58%)
CMYKcmyk(79.1%, 62.8%, 0%, 42%)
CIE-LABlab(27.19, 26.13, -53.66)
CIE-LCHlch(27.19, 59.68, 295.97°)
OKLaboklab(38.23% -0.0075 -0.1551)
OKLCHoklch(38.23% 0.155 267.2)
XYZxyz(7.2747, 5.1610, 28.6240)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3794 #947C1F
analogous
#1F7294 #1F3794 #411F94
triadic
#1F3794 #941F37 #37941F
tetradic
#1F3794 #941F72 #947C1F #1F9441
square
#1F3794 #941F72 #947C1F #1F9441
split-complementary
#1F3794 #94411F #72941F
monochromatic
#0A112F #142461 #1F3794 #2A4AC7 #536EDB

Accessibility & contrast

On white

10.33
#1F3794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3794
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3794#FFFFFF#000000##FFFFFF
##1F37941.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004697
Deuteranopia (green-blind)
#003B92
Tritanopia (blue-blind)
#004F60
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f3794;
/* rgb */ color: rgb(31, 55, 148);
/* oklch */ color: oklch(38.2% 0.155 267.2);
Tailwind
colors: {
  custom: {
    50: '#6f6db4',
    500: '#1f3794',
    950: '#000000',
  },
}
SCSS
$custom: #1f3794;
$custom-light: #6f6db4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3794",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 148
  },
  "hsl": {
    "h": 227.692,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38233,
    "c": 0.15532,
    "h": 267.2
  },
  "luminance": 0.05162
}

Semantic roles & 50–950 ramp

primary
#1F3794
secondary
#BEA851
accent
#C63FE8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F3794

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

Preview Lab → · Contrast checker → · Palette generator →

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