#1F3496#1F3496

#1F3496 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.8% C 0.162 H 268.0°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#1F3496
RGBrgb(31, 52, 150)
HSLhsl(229, 66%, 35%)
HSVhsv(229, 79%, 59%)
CMYKcmyk(79.3%, 65.3%, 0%, 41.2%)
CIE-LABlab(26.59, 28.93, -55.87)
CIE-LCHlch(26.59, 62.92, 297.38°)
OKLaboklab(37.85% -0.0057 -0.1616)
OKLCHoklch(37.85% 0.162 268)
XYZxyz(7.2962, 4.9485, 29.4189)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3496 #96811F
analogous
#1F6F96 #1F3496 #461F96
triadic
#1F3496 #961F34 #34961F
tetradic
#1F3496 #961F6F #96811F #1F9646
square
#1F3496 #961F6F #96811F #1F9646
split-complementary
#1F3496 #96461F #6F961F
monochromatic
#0A1131 #152263 #1F3496 #2946C9 #546CDC

Accessibility & contrast

On white

10.55
#1F3496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#1F3496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3496
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3496#FFFFFF#000000##FFFFFF
##1F34961.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#003994
Tritanopia (blue-blind)
#004E60
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f3496;
/* rgb */ color: rgb(31, 52, 150);
/* oklch */ color: oklch(37.8% 0.162 268.0);
Tailwind
colors: {
  custom: {
    50: '#6f6bb6',
    500: '#1f3496',
    950: '#000000',
  },
}
SCSS
$custom: #1f3496;
$custom-light: #6f6bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3496",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 150
  },
  "hsl": {
    "h": 229.412,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37845,
    "c": 0.16175,
    "h": 268
  },
  "luminance": 0.04949
}

Semantic roles & 50–950 ramp

primary
#1F3496
secondary
#BFAC52
accent
#CB3FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1F3496

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

Preview Lab → · Contrast checker → · Palette generator →

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