#1F3596#1F3596

#1F3596 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.0% C 0.161 H 267.7°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#1F3596
RGBrgb(31, 53, 150)
HSLhsl(229, 66%, 35%)
HSVhsv(229, 79%, 59%)
CMYKcmyk(79.3%, 64.7%, 0%, 41.2%)
CIE-LABlab(26.84, 28.26, -55.45)
CIE-LCHlch(26.84, 62.23, 297.01°)
OKLaboklab(38.03% -0.0063 -0.1604)
OKLCHoklch(38.03% 0.161 267.7)
XYZxyz(7.3413, 5.0387, 29.4339)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3596 #96801F
analogous
#1F7096 #1F3596 #451F96
triadic
#1F3596 #961F35 #35961F
tetradic
#1F3596 #961F70 #96801F #1F9645
square
#1F3596 #961F70 #96801F #1F9645
split-complementary
#1F3596 #96451F #70961F
monochromatic
#0A1131 #152363 #1F3596 #2947C9 #546DDC

Accessibility & contrast

On white

10.46
#1F3596 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#1F3596 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3596
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3596#FFFFFF#000000##FFFFFF
##1F35961.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f3596;
/* rgb */ color: rgb(31, 53, 150);
/* oklch */ color: oklch(38.0% 0.161 267.7);
Tailwind
colors: {
  custom: {
    50: '#6f6cb6',
    500: '#1f3596',
    950: '#000000',
  },
}
SCSS
$custom: #1f3596;
$custom-light: #6f6cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3596",
  "rgb": {
    "r": 31,
    "g": 53,
    "b": 150
  },
  "hsl": {
    "h": 228.908,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38034,
    "c": 0.16053,
    "h": 267.7
  },
  "luminance": 0.0504
}

Semantic roles & 50–950 ramp

primary
#1F3596
secondary
#BFAB52
accent
#C93FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1F3596

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

Preview Lab → · Contrast checker → · Palette generator →

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