#1F3BA7#1F3BA7

#1F3BA7 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.8% C 0.176 H 266.7°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#1F3BA7
RGBrgb(31, 59, 167)
HSLhsl(228, 69%, 39%)
HSVhsv(228, 81%, 65%)
CMYKcmyk(81.4%, 64.7%, 0%, 34.5%)
CIE-LABlab(29.93, 30.77, -60.71)
CIE-LCHlch(29.93, 68.06, 296.88°)
OKLaboklab(40.79% -0.0102 -0.1758)
OKLCHoklch(40.79% 0.176 266.7)
XYZxyz(9.1016, 6.2082, 37.2703)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3BA7 #A78B1F
analogous
#1F7FA7 #1F3BA7 #471FA7
triadic
#1F3BA7 #A71F3B #3BA71F
tetradic
#1F3BA7 #A71F7F #A78B1F #1FA747
square
#1F3BA7 #A71F7F #A78B1F #1FA747
split-complementary
#1F3BA7 #A7471F #7FA71F
monochromatic
#0C1740 #152973 #1F3BA7 #2B4FD8 #5F7AE1

Accessibility & contrast

On white

9.37
#1F3BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#1F3BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3BA7
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3BA7#FFFFFF#000000##FFFFFF
##1F3BA71.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAA
Deuteranopia (green-blind)
#0040A5
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f3ba7;
/* rgb */ color: rgb(31, 59, 167);
/* oklch */ color: oklch(40.8% 0.176 266.7);
Tailwind
colors: {
  custom: {
    50: '#7370c2',
    500: '#1f3ba7',
    950: '#000000',
  },
}
SCSS
$custom: #1f3ba7;
$custom-light: #7370c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3ba7",
  "rgb": {
    "r": 31,
    "g": 59,
    "b": 167
  },
  "hsl": {
    "h": 227.647,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40787,
    "c": 0.17606,
    "h": 266.7
  },
  "luminance": 0.06209
}

Semantic roles & 50–950 ramp

primary
#1F3BA7
secondary
#C6B05C
accent
#C73CEC
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #1F3BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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