#1F3894#1F3894

#1F3894 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.4% C 0.154 H 267.0°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#1F3894
RGBrgb(31, 56, 148)
HSLhsl(227, 65%, 35%)
HSVhsv(227, 79%, 58%)
CMYKcmyk(79.1%, 62.2%, 0%, 42%)
CIE-LABlab(27.45, 25.45, -53.22)
CIE-LCHlch(27.45, 59.00, 295.56°)
OKLaboklab(38.43% -0.0082 -0.1539)
OKLCHoklch(38.43% 0.154 267)
XYZxyz(7.3227, 5.2569, 28.6400)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3894 #947B1F
analogous
#1F7394 #1F3894 #401F94
triadic
#1F3894 #941F38 #38941F
tetradic
#1F3894 #941F73 #947B1F #1F9440
square
#1F3894 #941F73 #947B1F #1F9440
split-complementary
#1F3894 #94401F #73941F
monochromatic
#0A122F #142561 #1F3894 #2A4BC7 #5370DB

Accessibility & contrast

On white

10.24
#1F3894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#1F3894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3894
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3894#FFFFFF#000000##FFFFFF
##1F38941.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f3894;
/* rgb */ color: rgb(31, 56, 148);
/* oklch */ color: oklch(38.4% 0.154 267.0);
Tailwind
colors: {
  custom: {
    50: '#6e6eb4',
    500: '#1f3894',
    950: '#000000',
  },
}
SCSS
$custom: #1f3894;
$custom-light: #6e6eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3894",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 148
  },
  "hsl": {
    "h": 227.179,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38431,
    "c": 0.15408,
    "h": 267
  },
  "luminance": 0.05258
}

Semantic roles & 50–950 ramp

primary
#1F3894
secondary
#BEA751
accent
#C43FE8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F3894

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

Preview Lab → · Contrast checker → · Palette generator →

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