#1F3696#1F3696

#1F3696 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.2% C 0.159 H 267.5°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#1F3696
RGBrgb(31, 54, 150)
HSLhsl(228, 66%, 35%)
HSVhsv(228, 79%, 59%)
CMYKcmyk(79.3%, 64%, 0%, 41.2%)
CIE-LABlab(27.10, 27.59, -55.02)
CIE-LCHlch(27.10, 61.55, 296.63°)
OKLaboklab(38.23% -0.0069 -0.1592)
OKLCHoklch(38.23% 0.159 267.5)
XYZxyz(7.3873, 5.1308, 29.4493)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3696 #967F1F
analogous
#1F7296 #1F3696 #431F96
triadic
#1F3696 #961F36 #36961F
tetradic
#1F3696 #961F72 #967F1F #1F9643
square
#1F3696 #961F72 #967F1F #1F9643
split-complementary
#1F3696 #96431F #72961F
monochromatic
#0A1131 #152463 #1F3696 #2948C9 #546EDC

Accessibility & contrast

On white

10.36
#1F3696 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#1F3696 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3696
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3696#FFFFFF#000000##FFFFFF
##1F36961.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#004F61
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f3696;
/* rgb */ color: rgb(31, 54, 150);
/* oklch */ color: oklch(38.2% 0.159 267.5);
Tailwind
colors: {
  custom: {
    50: '#6f6cb6',
    500: '#1f3696',
    950: '#000000',
  },
}
SCSS
$custom: #1f3696;
$custom-light: #6f6cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3696",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 150
  },
  "hsl": {
    "h": 228.403,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38226,
    "c": 0.15931,
    "h": 267.5
  },
  "luminance": 0.05132
}

Semantic roles & 50–950 ramp

primary
#1F3696
secondary
#BFAA52
accent
#C83FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #1F3696

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

Preview Lab → · Contrast checker → · Palette generator →

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