#1F18B3#1F18B3

#1F18B3 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.2% C 0.223 H 269.8°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#1F18B3
RGBrgb(31, 24, 179)
HSLhsl(243, 76%, 40%)
HSVhsv(243, 87%, 70%)
CMYKcmyk(82.7%, 86.6%, 0%, 29.8%)
CIE-LABlab(24.32, 54.34, -77.19)
CIE-LCHlch(24.32, 94.40, 305.14°)
OKLaboklab(37.17% -0.0009 -0.2233)
OKLCHoklch(37.17% 0.223 269.8)
XYZxyz(9.0256, 4.1982, 42.9737)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F18B3 #ACB318
analogous
#185EB3 #1F18B3 #6D18B3
triadic
#1F18B3 #B31F18 #18B31F
tetradic
#1F18B3 #B3185E #ACB318 #18B36D
square
#1F18B3 #B3185E #ACB318 #18B36D
split-complementary
#1F18B3 #B36D18 #5EB318
monochromatic
#0C0A47 #16117D #1F18B3 #2F26E2 #635CE9

Accessibility & contrast

On white

11.41
#1F18B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1F18B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F18B3
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F18B3#FFFFFF#000000##FFFFFF
##1F18B31.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041B7
Deuteranopia (green-blind)
#0032B1
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f18b3;
/* rgb */ color: rgb(31, 24, 179);
/* oklch */ color: oklch(37.2% 0.223 269.8);
Tailwind
colors: {
  custom: {
    50: '#7a5ccb',
    500: '#1f18b3',
    950: '#000000',
  },
}
SCSS
$custom: #1f18b3;
$custom-light: #7a5ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f18b3",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 179
  },
  "hsl": {
    "h": 242.71,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37169,
    "c": 0.22334,
    "h": 269.8
  },
  "luminance": 0.04199
}

Semantic roles & 50–950 ramp

primary
#1F18B3
secondary
#C8CD5A
accent
#F335EA
background
#F8F5FC
surface
#EFE9F9
border
#CAC5D2
text
#0B0414
muted
#7C7982

Preview Lab

Preview with #1F18B3

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

Preview Lab → · Contrast checker → · Palette generator →

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