#1F18C9#1F18C9

#1F18C9 is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.9% C 0.247 H 268.6°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#1F18C9
RGBrgb(31, 24, 201)
HSLhsl(242, 79%, 44%)
HSVhsv(242, 88%, 79%)
CMYKcmyk(84.6%, 88.1%, 0%, 21.2%)
CIE-LABlab(27.19, 60.65, -85.44)
CIE-LCHlch(27.19, 104.78, 305.37°)
OKLaboklab(39.93% -0.0058 -0.2471)
OKLCHoklch(39.93% 0.247 268.6)
XYZxyz(11.4307, 5.1602, 55.6406)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F18C9 #C2C918
analogous
#186AC9 #1F18C9 #7818C9
triadic
#1F18C9 #C91F18 #18C91F
tetradic
#1F18C9 #C9186A #C2C918 #18C978
square
#1F18C9 #C9186A #C2C918 #18C978
split-complementary
#1F18C9 #C97818 #6AC918
monochromatic
#0E0B5C #171192 #1F18C9 #3E37E7 #736EEE

Accessibility & contrast

On white

10.33
#1F18C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#1F18C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F18C9
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F18C9#FFFFFF#000000##FFFFFF
##1F18C91.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049CE
Deuteranopia (green-blind)
#0037C6
Tritanopia (blue-blind)
#005677
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f18c9;
/* rgb */ color: rgb(31, 24, 201);
/* oklch */ color: oklch(39.9% 0.247 268.6);
Tailwind
colors: {
  custom: {
    50: '#7f5edb',
    500: '#1f18c9',
    950: '#000000',
  },
}
SCSS
$custom: #1f18c9;
$custom-light: #7f5edb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f18c9",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 201
  },
  "hsl": {
    "h": 242.373,
    "s": 78.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.39933,
    "c": 0.24721,
    "h": 268.6
  },
  "luminance": 0.05162
}

Semantic roles & 50–950 ramp

primary
#1F18C9
secondary
#CFD469
accent
#F533ED
background
#F8F5FD
surface
#F0EAFB
border
#CBC6D4
text
#0D0515
muted
#7D7983

Preview Lab

Preview with #1F18C9

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

Preview Lab → · Contrast checker → · Palette generator →

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