#1F42BC#1F42BC

#1F42BC is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.1% C 0.195 H 265.8°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#1F42BC
RGBrgb(31, 66, 188)
HSLhsl(227, 72%, 43%)
HSVhsv(227, 84%, 74%)
CMYKcmyk(83.5%, 64.9%, 0%, 26.3%)
CIE-LABlab(33.60, 34.13, -67.19)
CIE-LCHlch(33.60, 75.36, 296.93°)
OKLaboklab(44.07% -0.0143 -0.1946)
OKLCHoklch(44.07% 0.195 265.8)
XYZxyz(11.5872, 7.8172, 48.4654)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F42BC #BC991F
analogous
#1F90BC #1F42BC #4A1FBC
triadic
#1F42BC #BC1F42 #42BC1F
tetradic
#1F42BC #BC1F90 #BC991F #1FBC4A
square
#1F42BC #BC1F90 #BC991F #1FBC4A
split-complementary
#1F42BC #BC4A1F #90BC1F
monochromatic
#0E1D53 #163087 #1F42BC #3A5EDE #6E89E7

Accessibility & contrast

On white

8.19
#1F42BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#1F42BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F42BC
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F42BC#FFFFFF#000000##FFFFFF
##1F42BC1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#0048BA
Tritanopia (blue-blind)
#006379
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f42bc;
/* rgb */ color: rgb(31, 66, 188);
/* oklch */ color: oklch(44.1% 0.195 265.8);
Tailwind
colors: {
  custom: {
    50: '#7876d1',
    500: '#1f42bc',
    950: '#000000',
  },
}
SCSS
$custom: #1f42bc;
$custom-light: #7876d1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f42bc",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 226.624,
    "s": 71.689,
    "l": 42.941
  },
  "oklch": {
    "l": 0.44074,
    "c": 0.19515,
    "h": 265.8
  },
  "luminance": 0.07819
}

Semantic roles & 50–950 ramp

primary
#1F42BC
secondary
#CDB769
accent
#C639EE
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #1F42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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