#1F3FA8#1F3FA8

#1F3FA8 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.6% C 0.173 H 265.9°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#1F3FA8
RGBrgb(31, 63, 168)
HSLhsl(226, 69%, 39%)
HSVhsv(226, 82%, 66%)
CMYKcmyk(81.5%, 62.5%, 0%, 34.1%)
CIE-LABlab(31.05, 28.49, -59.48)
CIE-LCHlch(31.05, 65.95, 295.59°)
OKLaboklab(41.64% -0.0124 -0.1721)
OKLCHoklch(41.64% 0.173 265.9)
XYZxyz(9.4080, 6.6724, 37.8302)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3FA8 #A8881F
analogous
#1F84A8 #1F3FA8 #431FA8
triadic
#1F3FA8 #A81F3F #3FA81F
tetradic
#1F3FA8 #A81F84 #A8881F #1FA843
square
#1F3FA8 #A81F84 #A8881F #1FA843
split-complementary
#1F3FA8 #A8431F #84A81F
monochromatic
#0C1841 #152C74 #1F3FA8 #2C54D8 #607EE2

Accessibility & contrast

On white

9.00
#1F3FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#1F3FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3FA8
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3FA8#FFFFFF#000000##FFFFFF
##1F3FA81.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AB
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f3fa8;
/* rgb */ color: rgb(31, 63, 168);
/* oklch */ color: oklch(41.6% 0.173 265.9);
Tailwind
colors: {
  custom: {
    50: '#7373c3',
    500: '#1f3fa8',
    950: '#000000',
  },
}
SCSS
$custom: #1f3fa8;
$custom-light: #7373c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3fa8",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 168
  },
  "hsl": {
    "h": 225.985,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4164,
    "c": 0.17256,
    "h": 265.9
  },
  "luminance": 0.06673
}

Semantic roles & 50–950 ramp

primary
#1F3FA8
secondary
#C6AE5D
accent
#C33CEC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1F3FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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