#1F3790#1F3790

#1F3790 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.9% C 0.150 H 267.1°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#1F3790
RGBrgb(31, 55, 144)
HSLhsl(227, 65%, 34%)
HSVhsv(227, 78%, 56%)
CMYKcmyk(78.5%, 61.8%, 0%, 43.5%)
CIE-LABlab(26.84, 24.57, -51.77)
CIE-LCHlch(26.84, 57.30, 295.39°)
OKLaboklab(37.87% -0.0075 -0.1496)
OKLCHoklch(37.87% 0.15 267.1)
XYZxyz(6.9635, 5.0365, 26.9853)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3790 #90781F
analogous
#1F7090 #1F3790 #401F90
triadic
#1F3790 #901F37 #37901F
tetradic
#1F3790 #901F70 #90781F #1F9040
square
#1F3790 #901F70 #90781F #1F9040
split-complementary
#1F3790 #90401F #70901F
monochromatic
#09112B #14245E #1F3790 #2A4AC2 #506DD9

Accessibility & contrast

On white

10.46
#1F3790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#1F3790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3790
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3790#FFFFFF#000000##FFFFFF
##1F37901.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004593
Deuteranopia (green-blind)
#003A8E
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f3790;
/* rgb */ color: rgb(31, 55, 144);
/* oklch */ color: oklch(37.9% 0.150 267.1);
Tailwind
colors: {
  custom: {
    50: '#6e6db1',
    500: '#1f3790',
    950: '#000000',
  },
}
SCSS
$custom: #1f3790;
$custom-light: #6e6db1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3790",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 144
  },
  "hsl": {
    "h": 227.257,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37865,
    "c": 0.14979,
    "h": 267.1
  },
  "luminance": 0.05037
}

Semantic roles & 50–950 ramp

primary
#1F3790
secondary
#BCA54E
accent
#C440E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F3790

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

Preview Lab → · Contrast checker → · Palette generator →

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