#1F41A0#1F41A0

#1F41A0 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.3% C 0.159 H 265.0°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#1F41A0
RGBrgb(31, 65, 160)
HSLhsl(224, 68%, 37%)
HSVhsv(224, 81%, 63%)
CMYKcmyk(80.6%, 59.4%, 0%, 37.3%)
CIE-LABlab(30.90, 24.03, -54.91)
CIE-LCHlch(30.90, 59.94, 293.63°)
OKLaboklab(41.32% -0.0138 -0.1587)
OKLCHoklch(41.32% 0.159 265)
XYZxyz(8.7983, 6.6089, 34.0628)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F41A0 #A07E1F
analogous
#1F82A0 #1F41A0 #3E1FA0
triadic
#1F41A0 #A01F41 #41A01F
tetradic
#1F41A0 #A01F82 #A07E1F #1FA03E
square
#1F41A0 #A01F82 #A07E1F #1FA03E
split-complementary
#1F41A0 #A03E1F #82A01F
monochromatic
#0B1739 #152C6D #1F41A0 #2956D3 #5A7DDF

Accessibility & contrast

On white

9.04
#1F41A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#1F41A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F41A0
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F41A0#FFFFFF#000000##FFFFFF
##1F41A01.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f41a0;
/* rgb */ color: rgb(31, 65, 160);
/* oklch */ color: oklch(41.3% 0.159 265.0);
Tailwind
colors: {
  custom: {
    50: '#7175bd',
    500: '#1f41a0',
    950: '#000000',
  },
}
SCSS
$custom: #1f41a0;
$custom-light: #7175bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f41a0",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 160
  },
  "hsl": {
    "h": 224.186,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41318,
    "c": 0.15927,
    "h": 265
  },
  "luminance": 0.0661
}

Semantic roles & 50–950 ramp

primary
#1F41A0
secondary
#C3A758
accent
#BD3DEA
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F41A0

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

Preview Lab → · Contrast checker → · Palette generator →

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