#1F3796#1F3796

#1F3796 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.4% C 0.158 H 267.3°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#1F3796
RGBrgb(31, 55, 150)
HSLhsl(228, 66%, 35%)
HSVhsv(228, 79%, 59%)
CMYKcmyk(79.3%, 63.3%, 0%, 41.2%)
CIE-LABlab(27.37, 26.91, -54.59)
CIE-LCHlch(27.37, 60.87, 296.24°)
OKLaboklab(38.42% -0.0075 -0.1579)
OKLCHoklch(38.42% 0.158 267.3)
XYZxyz(7.4344, 5.2248, 29.4649)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3796 #967E1F
analogous
#1F7296 #1F3796 #421F96
triadic
#1F3796 #961F37 #37961F
tetradic
#1F3796 #961F72 #967E1F #1F9642
square
#1F3796 #961F72 #967E1F #1F9642
split-complementary
#1F3796 #96421F #72961F
monochromatic
#0A1231 #152463 #1F3796 #294AC9 #546FDC

Accessibility & contrast

On white

10.27
#1F3796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3796
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3796#FFFFFF#000000##FFFFFF
##1F37961.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f3796;
/* rgb */ color: rgb(31, 55, 150);
/* oklch */ color: oklch(38.4% 0.158 267.3);
Tailwind
colors: {
  custom: {
    50: '#6f6db6',
    500: '#1f3796',
    950: '#000000',
  },
}
SCSS
$custom: #1f3796;
$custom-light: #6f6db6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3796",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 150
  },
  "hsl": {
    "h": 227.899,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38419,
    "c": 0.15807,
    "h": 267.3
  },
  "luminance": 0.05226
}

Semantic roles & 50–950 ramp

primary
#1F3796
secondary
#BFA952
accent
#C63FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #1F3796

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

Preview Lab → · Contrast checker → · Palette generator →

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