#1F3EA1#1F3EA1

#1F3EA1 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.8% C 0.164 H 265.9°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#1F3EA1
RGBrgb(31, 62, 161)
HSLhsl(226, 68%, 38%)
HSVhsv(226, 81%, 63%)
CMYKcmyk(80.7%, 61.5%, 0%, 36.9%)
CIE-LABlab(30.18, 26.45, -56.69)
CIE-LCHlch(30.18, 62.56, 295.01°)
OKLaboklab(40.81% -0.0119 -0.1639)
OKLCHoklch(40.81% 0.164 265.9)
XYZxyz(8.7185, 6.3087, 34.4695)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3EA1 #A1821F
analogous
#1F7FA1 #1F3EA1 #411FA1
triadic
#1F3EA1 #A11F3E #3EA11F
tetradic
#1F3EA1 #A11F7F #A1821F #1FA141
square
#1F3EA1 #A11F7F #A1821F #1FA141
split-complementary
#1F3EA1 #A1411F #7FA11F
monochromatic
#0B163A #152A6E #1F3EA1 #2952D4 #5B7BDF

Accessibility & contrast

On white

9.28
#1F3EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#1F3EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3EA1
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3EA1#FFFFFF#000000##FFFFFF
##1F3EA11.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA4
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f3ea1;
/* rgb */ color: rgb(31, 62, 161);
/* oklch */ color: oklch(40.8% 0.164 265.9);
Tailwind
colors: {
  custom: {
    50: '#7172be',
    500: '#1f3ea1',
    950: '#000000',
  },
}
SCSS
$custom: #1f3ea1;
$custom-light: #7172be;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3ea1",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 161
  },
  "hsl": {
    "h": 225.692,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40805,
    "c": 0.16437,
    "h": 265.9
  },
  "luminance": 0.0631
}

Semantic roles & 50–950 ramp

primary
#1F3EA1
secondary
#C4AA58
accent
#C13DEB
background
#F7F6FB
surface
#EDECF7
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F3EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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