#1F3599#1F3599

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

Color values

HEX#1F3599
RGBrgb(31, 53, 153)
HSLhsl(229, 66%, 36%)
HSVhsv(229, 80%, 60%)
CMYKcmyk(79.7%, 65.4%, 0%, 40%)
CIE-LABlab(27.12, 29.41, -56.83)
CIE-LCHlch(27.12, 63.99, 297.36°)
OKLaboklab(38.32% -0.0064 -0.1645)
OKLCHoklch(38.32% 0.165 267.8)
XYZxyz(7.5859, 5.1366, 30.7225)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3599 #99831F
analogous
#1F7299 #1F3599 #461F99
triadic
#1F3599 #991F35 #35991F
tetradic
#1F3599 #991F72 #99831F #1F9946
square
#1F3599 #991F72 #99831F #1F9946
split-complementary
#1F3599 #99461F #72991F
monochromatic
#0A1233 #152366 #1F3599 #2947CC #566EDD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F3599#FFFFFF#000000##FFFFFF
##1F35991.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)
#00469C
Deuteranopia (green-blind)
#003A97
Tritanopia (blue-blind)
#004F62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f3599;
/* rgb */ color: rgb(31, 53, 153);
/* oklch */ color: oklch(38.3% 0.165 267.8);
Tailwind
colors: {
  custom: {
    50: '#706cb8',
    500: '#1f3599',
    950: '#000000',
  },
}
SCSS
$custom: #1f3599;
$custom-light: #706cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3599",
  "rgb": {
    "r": 31,
    "g": 53,
    "b": 153
  },
  "hsl": {
    "h": 229.18,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38322,
    "c": 0.16458,
    "h": 267.8
  },
  "luminance": 0.05137
}

Semantic roles & 50–950 ramp

primary
#1F3599
secondary
#C0AD54
accent
#CA3FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #1F3599

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

Preview Lab → · Contrast checker → · Palette generator →

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