#1F3196#1F3196

#1F3196 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.165 H 268.6°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#1F3196
RGBrgb(31, 49, 150)
HSLhsl(231, 66%, 35%)
HSVhsv(231, 79%, 59%)
CMYKcmyk(79.3%, 67.3%, 0%, 41.2%)
CIE-LABlab(25.83, 30.93, -57.11)
CIE-LCHlch(25.83, 64.95, 298.44°)
OKLaboklab(37.29% -0.004 -0.1653)
OKLCHoklch(37.29% 0.165 268.6)
XYZxyz(7.1665, 4.6891, 29.3756)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3196 #96841F
analogous
#1F6D96 #1F3196 #481F96
triadic
#1F3196 #961F31 #31961F
tetradic
#1F3196 #961F6D #96841F #1F9648
square
#1F3196 #961F6D #96841F #1F9648
split-complementary
#1F3196 #96481F #6D961F
monochromatic
#0A1031 #152063 #1F3196 #2942C9 #5468DC

Accessibility & contrast

On white

10.84
#1F3196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#1F3196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3196
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3196#FFFFFF#000000##FFFFFF
##1F31961.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#003894
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f3196;
/* rgb */ color: rgb(31, 49, 150);
/* oklch */ color: oklch(37.3% 0.165 268.6);
Tailwind
colors: {
  custom: {
    50: '#7069b6',
    500: '#1f3196',
    950: '#000000',
  },
}
SCSS
$custom: #1f3196;
$custom-light: #7069b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3196",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 150
  },
  "hsl": {
    "h": 230.924,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37289,
    "c": 0.16536,
    "h": 268.6
  },
  "luminance": 0.0469
}

Semantic roles & 50–950 ramp

primary
#1F3196
secondary
#BFAE52
accent
#CF3FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1F3196

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

Preview Lab → · Contrast checker → · Palette generator →

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