#1F3BA6#1F3BA6

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

Color values

HEX#1F3BA6
RGBrgb(31, 59, 166)
HSLhsl(228, 69%, 39%)
HSVhsv(228, 81%, 65%)
CMYKcmyk(81.3%, 64.5%, 0%, 34.9%)
CIE-LABlab(29.84, 30.39, -60.26)
CIE-LCHlch(29.84, 67.49, 296.76°)
OKLaboklab(40.69% -0.0102 -0.1744)
OKLCHoklch(40.69% 0.175 266.7)
XYZxyz(9.0096, 6.1713, 36.7853)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3BA6 #A68A1F
analogous
#1F7EA6 #1F3BA6 #471FA6
triadic
#1F3BA6 #A61F3B #3BA61F
tetradic
#1F3BA6 #A61F7E #A68A1F #1FA647
square
#1F3BA6 #A61F7E #A68A1F #1FA647
split-complementary
#1F3BA6 #A6471F #7EA61F
monochromatic
#0C163F #152972 #1F3BA6 #2B4FD7 #5E79E1

Accessibility & contrast

On white

9.40
#1F3BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#1F3BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3BA6
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3BA6#FFFFFF#000000##FFFFFF
##1F3BA61.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#0040A4
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f3ba6;
/* rgb */ color: rgb(31, 59, 166);
/* oklch */ color: oklch(40.7% 0.175 266.7);
Tailwind
colors: {
  custom: {
    50: '#7370c1',
    500: '#1f3ba6',
    950: '#000000',
  },
}
SCSS
$custom: #1f3ba6;
$custom-light: #7370c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3ba6",
  "rgb": {
    "r": 31,
    "g": 59,
    "b": 166
  },
  "hsl": {
    "h": 227.556,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40691,
    "c": 0.17473,
    "h": 266.7
  },
  "luminance": 0.06172
}

Semantic roles & 50–950 ramp

primary
#1F3BA6
secondary
#C5AF5B
accent
#C73CEB
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #1F3BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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