#1F3697#1F3697

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

Color values

HEX#1F3697
RGBrgb(31, 54, 151)
HSLhsl(229, 66%, 36%)
HSVhsv(229, 79%, 59%)
CMYKcmyk(79.5%, 64.2%, 0%, 40.8%)
CIE-LABlab(27.19, 27.97, -55.49)
CIE-LCHlch(27.19, 62.14, 296.75°)
OKLaboklab(38.32% -0.0069 -0.1605)
OKLCHoklch(38.32% 0.161 267.5)
XYZxyz(7.4682, 5.1632, 29.8751)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3697 #97801F
analogous
#1F7297 #1F3697 #441F97
triadic
#1F3697 #971F36 #36971F
tetradic
#1F3697 #971F72 #97801F #1F9744
square
#1F3697 #971F72 #97801F #1F9744
split-complementary
#1F3697 #97441F #72971F
monochromatic
#0A1231 #152464 #1F3697 #2948CA #546EDC

Accessibility & contrast

On white

10.33
#1F3697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3697
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3697#FFFFFF#000000##FFFFFF
##1F36971.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#004F61
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f3697;
/* rgb */ color: rgb(31, 54, 151);
/* oklch */ color: oklch(38.3% 0.161 267.5);
Tailwind
colors: {
  custom: {
    50: '#6f6cb6',
    500: '#1f3697',
    950: '#000000',
  },
}
SCSS
$custom: #1f3697;
$custom-light: #6f6cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3697",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 151
  },
  "hsl": {
    "h": 228.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3832,
    "c": 0.16067,
    "h": 267.5
  },
  "luminance": 0.05164
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F3697

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

Preview Lab → · Contrast checker → · Palette generator →

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