#1F3899#1F3899

#1F3899 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.9% C 0.161 H 267.1°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#1F3899
RGBrgb(31, 56, 153)
HSLhsl(228, 66%, 36%)
HSVhsv(228, 80%, 60%)
CMYKcmyk(79.7%, 63.4%, 0%, 40%)
CIE-LABlab(27.90, 27.40, -55.56)
CIE-LCHlch(27.90, 61.95, 296.25°)
OKLaboklab(38.89% -0.0082 -0.1607)
OKLCHoklch(38.89% 0.161 267.1)
XYZxyz(7.7270, 5.4187, 30.7695)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3899 #99801F
analogous
#1F7599 #1F3899 #431F99
triadic
#1F3899 #991F38 #38991F
tetradic
#1F3899 #991F75 #99801F #1F9943
square
#1F3899 #991F75 #99801F #1F9943
split-complementary
#1F3899 #99431F #75991F
monochromatic
#0A1333 #152566 #1F3899 #294BCC #5671DD

Accessibility & contrast

On white

10.08
#1F3899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#1F3899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3899
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3899#FFFFFF#000000##FFFFFF
##1F38991.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#003C97
Tritanopia (blue-blind)
#005163
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f3899;
/* rgb */ color: rgb(31, 56, 153);
/* oklch */ color: oklch(38.9% 0.161 267.1);
Tailwind
colors: {
  custom: {
    50: '#706eb8',
    500: '#1f3899',
    950: '#000000',
  },
}
SCSS
$custom: #1f3899;
$custom-light: #706eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3899",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 153
  },
  "hsl": {
    "h": 227.705,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38894,
    "c": 0.16092,
    "h": 267.1
  },
  "luminance": 0.0542
}

Semantic roles & 50–950 ramp

primary
#1F3899
secondary
#C0AA54
accent
#C63FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #1F3899

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

Preview Lab → · Contrast checker → · Palette generator →

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