#1F41A1#1F41A1

#1F41A1 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.4% C 0.161 H 265.1°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#1F41A1
RGBrgb(31, 65, 161)
HSLhsl(224, 68%, 38%)
HSVhsv(224, 81%, 63%)
CMYKcmyk(80.7%, 59.6%, 0%, 36.9%)
CIE-LABlab(30.98, 24.42, -55.38)
CIE-LCHlch(30.98, 60.52, 293.80°)
OKLaboklab(41.4% -0.0138 -0.16)
OKLCHoklch(41.4% 0.161 265.1)
XYZxyz(8.8861, 6.6441, 34.5254)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F41A1 #A17F1F
analogous
#1F82A1 #1F41A1 #3E1FA1
triadic
#1F41A1 #A11F41 #41A11F
tetradic
#1F41A1 #A11F82 #A17F1F #1FA13E
square
#1F41A1 #A11F82 #A17F1F #1FA13E
split-complementary
#1F41A1 #A13E1F #82A11F
monochromatic
#0B183A #152C6E #1F41A1 #2956D4 #5B7EDF

Accessibility & contrast

On white

9.02
#1F41A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F41A1
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F41A1#FFFFFF#000000##FFFFFF
##1F41A11.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f41a1;
/* rgb */ color: rgb(31, 65, 161);
/* oklch */ color: oklch(41.4% 0.161 265.1);
Tailwind
colors: {
  custom: {
    50: '#7175be',
    500: '#1f41a1',
    950: '#000000',
  },
}
SCSS
$custom: #1f41a1;
$custom-light: #7175be;
$custom-dark: #000000;
JSON
{
  "hex": "#1f41a1",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 161
  },
  "hsl": {
    "h": 224.308,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41405,
    "c": 0.16064,
    "h": 265.1
  },
  "luminance": 0.06645
}

Semantic roles & 50–950 ramp

primary
#1F41A1
secondary
#C4A758
accent
#BD3DEB
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F41A1

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

Preview Lab → · Contrast checker → · Palette generator →

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