#2118B4#2118B4

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

Color values

HEX#2118B4
RGBrgb(33, 24, 180)
HSLhsl(243, 76%, 40%)
HSVhsv(243, 87%, 71%)
CMYKcmyk(81.7%, 86.7%, 0%, 29.4%)
CIE-LABlab(24.55, 54.71, -77.40)
CIE-LCHlch(24.55, 94.79, 305.25°)
OKLaboklab(37.39% 0.0011 -0.2239)
OKLCHoklch(37.39% 0.224 270.3)
XYZxyz(9.1893, 4.2708, 43.5112)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2118B4 #ABB418
analogous
#185DB4 #2118B4 #6F18B4
triadic
#2118B4 #B42118 #18B421
tetradic
#2118B4 #B4185D #ABB418 #18B46F
square
#2118B4 #B4185D #ABB418 #18B46F
split-complementary
#2118B4 #B46F18 #5DB418
monochromatic
#0D0A48 #17117E #2118B4 #3227E2 #655DE9

Accessibility & contrast

On white

11.32
#2118B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2118B4
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2118B4#FFFFFF#000000##FFFFFF
##2118B41.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2118b4;
/* rgb */ color: rgb(33, 24, 180);
/* oklch */ color: oklch(37.4% 0.224 270.3);
Tailwind
colors: {
  custom: {
    50: '#7a5ccc',
    500: '#2118b4',
    950: '#000000',
  },
}
SCSS
$custom: #2118b4;
$custom-light: #7a5ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#2118b4",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 243.462,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.37392,
    "c": 0.22392,
    "h": 270.3
  },
  "luminance": 0.04272
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2118B4

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

Preview Lab → · Contrast checker → · Palette generator →

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