#1F41BC#1F41BC

#1F41BC is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.9% C 0.196 H 266.0°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#1F41BC
RGBrgb(31, 65, 188)
HSLhsl(227, 72%, 43%)
HSVhsv(227, 84%, 74%)
CMYKcmyk(83.5%, 65.4%, 0%, 26.3%)
CIE-LABlab(33.35, 34.78, -67.59)
CIE-LCHlch(33.35, 76.02, 297.23°)
OKLaboklab(43.89% -0.0138 -0.1958)
OKLCHoklch(43.89% 0.196 266)
XYZxyz(11.5293, 7.7013, 48.4461)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F41BC #BC9A1F
analogous
#1F90BC #1F41BC #4B1FBC
triadic
#1F41BC #BC1F41 #41BC1F
tetradic
#1F41BC #BC1F90 #BC9A1F #1FBC4B
square
#1F41BC #BC1F90 #BC9A1F #1FBC4B
split-complementary
#1F41BC #BC4B1F #90BC1F
monochromatic
#0E1D53 #162F87 #1F41BC #3A5DDE #6E88E7

Accessibility & contrast

On white

8.27
#1F41BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#1F41BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F41BC
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F41BC#FFFFFF#000000##FFFFFF
##1F41BC1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C0
Deuteranopia (green-blind)
#0047BA
Tritanopia (blue-blind)
#006278
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f41bc;
/* rgb */ color: rgb(31, 65, 188);
/* oklch */ color: oklch(43.9% 0.196 266.0);
Tailwind
colors: {
  custom: {
    50: '#7875d1',
    500: '#1f41bc',
    950: '#000000',
  },
}
SCSS
$custom: #1f41bc;
$custom-light: #7875d1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f41bc",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 188
  },
  "hsl": {
    "h": 227.006,
    "s": 71.689,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43893,
    "c": 0.19631,
    "h": 266
  },
  "luminance": 0.07703
}

Semantic roles & 50–950 ramp

primary
#1F41BC
secondary
#CDB869
accent
#C739EE
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #1F41BC

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

Preview Lab → · Contrast checker → · Palette generator →

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