#1F3699#1F3699

#1F3699 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.5% C 0.163 H 267.5°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#1F3699
RGBrgb(31, 54, 153)
HSLhsl(229, 66%, 36%)
HSVhsv(229, 80%, 60%)
CMYKcmyk(79.7%, 64.7%, 0%, 40%)
CIE-LABlab(27.38, 28.74, -56.41)
CIE-LCHlch(27.38, 63.31, 297.00°)
OKLaboklab(38.51% -0.007 -0.1632)
OKLCHoklch(38.51% 0.163 267.5)
XYZxyz(7.6320, 5.2287, 30.7378)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3699 #99821F
analogous
#1F7399 #1F3699 #451F99
triadic
#1F3699 #991F36 #36991F
tetradic
#1F3699 #991F73 #99821F #1F9945
square
#1F3699 #991F73 #99821F #1F9945
split-complementary
#1F3699 #99451F #73991F
monochromatic
#0A1233 #152466 #1F3699 #2948CC #566FDD

Accessibility & contrast

On white

10.26
#1F3699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#1F3699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3699
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3699#FFFFFF#000000##FFFFFF
##1F36991.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479C
Deuteranopia (green-blind)
#003B97
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f3699;
/* rgb */ color: rgb(31, 54, 153);
/* oklch */ color: oklch(38.5% 0.163 267.5);
Tailwind
colors: {
  custom: {
    50: '#706cb8',
    500: '#1f3699',
    950: '#000000',
  },
}
SCSS
$custom: #1f3699;
$custom-light: #706cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3699",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 153
  },
  "hsl": {
    "h": 228.689,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38511,
    "c": 0.16338,
    "h": 267.5
  },
  "luminance": 0.0523
}

Semantic roles & 50–950 ramp

primary
#1F3699
secondary
#C0AC54
accent
#C93FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #1F3699

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

Preview Lab → · Contrast checker → · Palette generator →

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