#1F4493#1F4493

#1F4493 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 40.9% C 0.137 H 262.9°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#1F4493
RGBrgb(31, 68, 147)
HSLhsl(221, 65%, 35%)
HSVhsv(221, 79%, 58%)
CMYKcmyk(78.9%, 53.7%, 0%, 42.4%)
CIE-LABlab(30.71, 16.82, -47.31)
CIE-LCHlch(30.71, 50.21, 289.57°)
OKLaboklab(40.86% -0.0169 -0.1363)
OKLCHoklch(40.86% 0.137 262.9)
XYZxyz(7.8968, 6.5312, 28.4426)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4493 #936E1F
analogous
#1F7E93 #1F4493 #341F93
triadic
#1F4493 #931F44 #44931F
tetradic
#1F4493 #931F7E #936E1F #1F9334
square
#1F4493 #931F7E #936E1F #1F9334
split-complementary
#1F4493 #93341F #7E931F
monochromatic
#0A152E #142D60 #1F4493 #2A5BC6 #527DDA

Accessibility & contrast

On white

9.11
#1F4493 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#1F4493 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4493
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4493#FFFFFF#000000##FFFFFF
##1F44931.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4E96
Deuteranopia (green-blind)
#004391
Tritanopia (blue-blind)
#005764
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f4493;
/* rgb */ color: rgb(31, 68, 147);
/* oklch */ color: oklch(40.9% 0.137 262.9);
Tailwind
colors: {
  custom: {
    50: '#6d77b3',
    500: '#1f4493',
    950: '#000000',
  },
}
SCSS
$custom: #1f4493;
$custom-light: #6d77b3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4493",
  "rgb": {
    "r": 31,
    "g": 68,
    "b": 147
  },
  "hsl": {
    "h": 220.862,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40856,
    "c": 0.13732,
    "h": 262.9
  },
  "luminance": 0.06532
}

Semantic roles & 50–950 ramp

primary
#1F4493
secondary
#BE9B50
accent
#B240E8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4493

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

Preview Lab → · Contrast checker → · Palette generator →

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