#1F18A0#1F18A0

#1F18A0 is a dark, highly saturated blue. Relative luminance 0.035; OKLCH L 34.8% C 0.202 H 271.0°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#1F18A0
RGBrgb(31, 24, 160)
HSLhsl(243, 74%, 36%)
HSVhsv(243, 85%, 63%)
CMYKcmyk(80.6%, 85%, 0%, 37.3%)
CIE-LABlab(21.88, 48.63, -69.77)
CIE-LCHlch(21.88, 85.04, 304.88°)
OKLaboklab(34.81% 0.0036 -0.2019)
OKLCHoklch(34.81% 0.202 271)
XYZxyz(7.2347, 3.4818, 33.5416)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F18A0 #99A018
analogous
#1855A0 #1F18A0 #6318A0
triadic
#1F18A0 #A01F18 #18A01F
tetradic
#1F18A0 #A01855 #99A018 #18A063
square
#1F18A0 #A01855 #99A018 #18A063
split-complementary
#1F18A0 #A06318 #55A018
monochromatic
#0A0836 #15106B #1F18A0 #2920D5 #564EE4

Accessibility & contrast

On white

12.38
#1F18A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F18A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F18A0
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F18A0#FFFFFF#000000##FFFFFF
##1F18A01.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA4
Deuteranopia (green-blind)
#002D9E
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f18a0;
/* rgb */ color: rgb(31, 24, 160);
/* oklch */ color: oklch(34.8% 0.202 271.0);
Tailwind
colors: {
  custom: {
    50: '#755abe',
    500: '#1f18a0',
    950: '#000000',
  },
}
SCSS
$custom: #1f18a0;
$custom-light: #755abe;
$custom-dark: #000000;
JSON
{
  "hex": "#1f18a0",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 243.088,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.34805,
    "c": 0.2019,
    "h": 271
  },
  "luminance": 0.03483
}

Semantic roles & 50–950 ramp

primary
#1F18A0
secondary
#C0C64D
accent
#F137E7
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F18A0

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

Preview Lab → · Contrast checker → · Palette generator →

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