#1F3994#1F3994

#1F3994 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.6% C 0.153 H 266.7°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#1F3994
RGBrgb(31, 57, 148)
HSLhsl(227, 65%, 35%)
HSVhsv(227, 79%, 58%)
CMYKcmyk(79.1%, 61.5%, 0%, 42%)
CIE-LABlab(27.72, 24.77, -52.79)
CIE-LCHlch(27.72, 58.31, 295.14°)
OKLaboklab(38.63% -0.0088 -0.1526)
OKLCHoklch(38.63% 0.153 266.7)
XYZxyz(7.3716, 5.3548, 28.6563)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3994 #947A1F
analogous
#1F7394 #1F3994 #401F94
triadic
#1F3994 #941F39 #39941F
tetradic
#1F3994 #941F73 #947A1F #1F9440
square
#1F3994 #941F73 #947A1F #1F9440
split-complementary
#1F3994 #94401F #73941F
monochromatic
#0A122F #142661 #1F3994 #2A4CC7 #5371DB

Accessibility & contrast

On white

10.14
#1F3994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#1F3994 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3994
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3994#FFFFFF#000000##FFFFFF
##1F39941.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004797
Deuteranopia (green-blind)
#003C92
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f3994;
/* rgb */ color: rgb(31, 57, 148);
/* oklch */ color: oklch(38.6% 0.153 266.7);
Tailwind
colors: {
  custom: {
    50: '#6e6fb4',
    500: '#1f3994',
    950: '#000000',
  },
}
SCSS
$custom: #1f3994;
$custom-light: #6e6fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3994",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 148
  },
  "hsl": {
    "h": 226.667,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3863,
    "c": 0.15282,
    "h": 266.7
  },
  "luminance": 0.05356
}

Semantic roles & 50–950 ramp

primary
#1F3994
secondary
#BEA651
accent
#C33FE8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F3994

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

Preview Lab → · Contrast checker → · Palette generator →

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