#1F4391#1F4391

#1F4391 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.5% C 0.136 H 263.1°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#1F4391
RGBrgb(31, 67, 145)
HSLhsl(221, 65%, 35%)
HSVhsv(221, 79%, 57%)
CMYKcmyk(78.6%, 53.8%, 0%, 43.1%)
CIE-LABlab(30.28, 16.70, -46.79)
CIE-LCHlch(30.28, 49.68, 289.65°)
OKLaboklab(40.48% -0.0164 -0.1348)
OKLCHoklch(40.48% 0.136 263.1)
XYZxyz(7.6812, 6.3491, 27.6032)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4391 #916D1F
analogous
#1F7C91 #1F4391 #341F91
triadic
#1F4391 #911F43 #43911F
tetradic
#1F4391 #911F7C #916D1F #1F9134
square
#1F4391 #911F7C #916D1F #1F9134
split-complementary
#1F4391 #91341F #7C911F
monochromatic
#09142C #142C5F #1F4391 #2A5AC3 #517CDA

Accessibility & contrast

On white

9.25
#1F4391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#1F4391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4391
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4391#FFFFFF#000000##FFFFFF
##1F43911.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4D94
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#005663
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f4391;
/* rgb */ color: rgb(31, 67, 145);
/* oklch */ color: oklch(40.5% 0.136 263.1);
Tailwind
colors: {
  custom: {
    50: '#6d76b2',
    500: '#1f4391',
    950: '#000000',
  },
}
SCSS
$custom: #1f4391;
$custom-light: #6d76b2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4391",
  "rgb": {
    "r": 31,
    "g": 67,
    "b": 145
  },
  "hsl": {
    "h": 221.053,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40476,
    "c": 0.13577,
    "h": 263.1
  },
  "luminance": 0.0635
}

Semantic roles & 50–950 ramp

primary
#1F4391
secondary
#BD9A4F
accent
#B340E8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4391

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

Preview Lab → · Contrast checker → · Palette generator →

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