#2018B4#2018B4

#2018B4 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.3% C 0.224 H 270.0°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#2018B4
RGBrgb(32, 24, 180)
HSLhsl(243, 76%, 40%)
HSVhsv(243, 87%, 71%)
CMYKcmyk(82.2%, 86.7%, 0%, 29.4%)
CIE-LABlab(24.50, 54.67, -77.49)
CIE-LCHlch(24.50, 94.83, 305.20°)
OKLaboklab(37.34% -0.0001 -0.2242)
OKLCHoklch(37.34% 0.224 270)
XYZxyz(9.1577, 4.2546, 43.5097)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2018B4 #ACB418
analogous
#185EB4 #2018B4 #6E18B4
triadic
#2018B4 #B42018 #18B420
tetradic
#2018B4 #B4185E #ACB418 #18B46E
square
#2018B4 #B4185E #ACB418 #18B46E
split-complementary
#2018B4 #B46E18 #5EB418
monochromatic
#0D0A48 #16117E #2018B4 #3127E2 #645DE9

Accessibility & contrast

On white

11.34
#2018B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2018B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2018B4
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2018B4#FFFFFF#000000##FFFFFF
##2018B41.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B8
Deuteranopia (green-blind)
#0032B2
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2018b4;
/* rgb */ color: rgb(32, 24, 180);
/* oklch */ color: oklch(37.3% 0.224 270.0);
Tailwind
colors: {
  custom: {
    50: '#7a5ccc',
    500: '#2018b4',
    950: '#000000',
  },
}
SCSS
$custom: #2018b4;
$custom-light: #7a5ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#2018b4",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 243.077,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.37342,
    "c": 0.22418,
    "h": 270
  },
  "luminance": 0.04256
}

Semantic roles & 50–950 ramp

primary
#2018B4
secondary
#C7CD5B
accent
#F335E9
background
#F8F5FC
surface
#EFE9F9
border
#CAC5D2
text
#0B0414
muted
#7C7982

Preview Lab

Preview with #2018B4

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

Preview Lab → · Contrast checker → · Palette generator →

#2018B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva