#1F3CB4#1F3CB4

#1F3CB4 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.2% C 0.192 H 266.7°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#1F3CB4
RGBrgb(31, 60, 180)
HSLhsl(228, 71%, 41%)
HSVhsv(228, 83%, 71%)
CMYKcmyk(82.8%, 66.7%, 0%, 29.4%)
CIE-LABlab(31.39, 35.02, -66.09)
CIE-LCHlch(31.39, 74.80, 297.92°)
OKLaboklab(42.22% -0.0112 -0.1915)
OKLCHoklch(42.22% 0.192 266.7)
XYZxyz(10.4163, 6.8171, 43.9380)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3CB4 #B4971F
analogous
#1F87B4 #1F3CB4 #4D1FB4
triadic
#1F3CB4 #B41F3C #3CB41F
tetradic
#1F3CB4 #B41F87 #B4971F #1FB44D
square
#1F3CB4 #B41F87 #B4971F #1FB44D
split-complementary
#1F3CB4 #B44D1F #87B41F
monochromatic
#0D194C #162B80 #1F3CB4 #3455DC #6881E5

Accessibility & contrast

On white

8.88
#1F3CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#1F3CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3CB4
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3CB4#FFFFFF#000000##FFFFFF
##1F3CB41.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#0043B2
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f3cb4;
/* rgb */ color: rgb(31, 60, 180);
/* oklch */ color: oklch(42.2% 0.192 266.7);
Tailwind
colors: {
  custom: {
    50: '#7771cc',
    500: '#1f3cb4',
    950: '#000000',
  },
}
SCSS
$custom: #1f3cb4;
$custom-light: #7771cc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3cb4",
  "rgb": {
    "r": 31,
    "g": 60,
    "b": 180
  },
  "hsl": {
    "h": 228.322,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42224,
    "c": 0.1918,
    "h": 266.7
  },
  "luminance": 0.06818
}

Semantic roles & 50–950 ramp

primary
#1F3CB4
secondary
#CBB764
accent
#CB3AED
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #1F3CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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