#1F3689#1F3689

#1F3689 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.0% C 0.141 H 267.2°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#1F3689
RGBrgb(31, 54, 137)
HSLhsl(227, 63%, 33%)
HSVhsv(227, 77%, 54%)
CMYKcmyk(77.4%, 60.6%, 0%, 46.3%)
CIE-LABlab(25.97, 22.50, -48.86)
CIE-LCHlch(25.97, 53.79, 294.73°)
OKLaboklab(37.03% -0.0069 -0.1411)
OKLCHoklch(37.03% 0.141 267.2)
XYZxyz(6.3980, 4.7351, 24.2388)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3689 #89721F
analogous
#1F6B89 #1F3689 #3D1F89
triadic
#1F3689 #891F36 #36891F
tetradic
#1F3689 #891F6B #89721F #1F893D
square
#1F3689 #891F6B #89721F #1F893D
split-complementary
#1F3689 #893D1F #6B891F
monochromatic
#080F25 #142257 #1F3689 #2A4ABB #4C6AD6

Accessibility & contrast

On white

10.78
#1F3689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#1F3689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3689
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3689#FFFFFF#000000##FFFFFF
##1F36891.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438C
Deuteranopia (green-blind)
#003987
Tritanopia (blue-blind)
#004B5A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f3689;
/* rgb */ color: rgb(31, 54, 137);
/* oklch */ color: oklch(37.0% 0.141 267.2);
Tailwind
colors: {
  custom: {
    50: '#6c6cac',
    500: '#1f3689',
    950: '#000000',
  },
}
SCSS
$custom: #1f3689;
$custom-light: #6c6cac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3689",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 137
  },
  "hsl": {
    "h": 226.981,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37028,
    "c": 0.14124,
    "h": 267.2
  },
  "luminance": 0.04736
}

Semantic roles & 50–950 ramp

primary
#1F3689
secondary
#B9A14B
accent
#C242E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1F3689

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

Preview Lab → · Contrast checker → · Palette generator →

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