#1F4091#1F4091

#1F4091 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.8% C 0.140 H 264.2°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#1F4091
RGBrgb(31, 64, 145)
HSLhsl(223, 65%, 35%)
HSVhsv(223, 79%, 57%)
CMYKcmyk(78.6%, 55.9%, 0%, 43.1%)
CIE-LABlab(29.42, 18.77, -48.19)
CIE-LCHlch(29.42, 51.71, 291.28°)
OKLaboklab(39.82% -0.014 -0.1389)
OKLCHoklch(39.82% 0.14 264.2)
XYZxyz(7.5075, 6.0016, 27.5453)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4091 #91701F
analogous
#1F7991 #1F4091 #371F91
triadic
#1F4091 #911F40 #40911F
tetradic
#1F4091 #911F79 #91701F #1F9137
square
#1F4091 #911F79 #91701F #1F9137
split-complementary
#1F4091 #91371F #79911F
monochromatic
#09132C #142A5F #1F4091 #2A56C3 #5178DA

Accessibility & contrast

On white

9.54
#1F4091 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#1F4091 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4091
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4091#FFFFFF#000000##FFFFFF
##1F40911.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B94
Deuteranopia (green-blind)
#00408F
Tritanopia (blue-blind)
#005462
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f4091;
/* rgb */ color: rgb(31, 64, 145);
/* oklch */ color: oklch(39.8% 0.140 264.2);
Tailwind
colors: {
  custom: {
    50: '#6d74b2',
    500: '#1f4091',
    950: '#000000',
  },
}
SCSS
$custom: #1f4091;
$custom-light: #6d74b2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4091",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 145
  },
  "hsl": {
    "h": 222.632,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39824,
    "c": 0.13965,
    "h": 264.2
  },
  "luminance": 0.06002
}

Semantic roles & 50–950 ramp

primary
#1F4091
secondary
#BD9D4F
accent
#B740E8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4091

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

Preview Lab → · Contrast checker → · Palette generator →

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