#2118A1#2118A1

#2118A1 is a dark, highly saturated blue. Relative luminance 0.035; OKLCH L 35.0% C 0.203 H 271.6°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#2118A1
RGBrgb(33, 24, 161)
HSLhsl(244, 74%, 36%)
HSVhsv(244, 85%, 63%)
CMYKcmyk(79.5%, 85.1%, 0%, 36.9%)
CIE-LABlab(22.12, 49.04, -69.97)
CIE-LCHlch(22.12, 85.45, 305.03°)
OKLaboklab(35.04% 0.0058 -0.2024)
OKLCHoklch(35.04% 0.203 271.6)
XYZxyz(7.3847, 3.5490, 34.0071)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2118A1 #98A118
analogous
#1854A1 #2118A1 #6618A1
triadic
#2118A1 #A12118 #18A121
tetradic
#2118A1 #A11854 #98A118 #18A166
square
#2118A1 #A11854 #98A118 #18A166
split-complementary
#2118A1 #A16618 #54A118
monochromatic
#0B0836 #16106C #2118A1 #2C20D6 #594FE5

Accessibility & contrast

On white

12.28
#2118A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2118A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2118A1
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2118A1#FFFFFF#000000##FFFFFF
##2118A11.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA5
Deuteranopia (green-blind)
#002E9F
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2118a1;
/* rgb */ color: rgb(33, 24, 161);
/* oklch */ color: oklch(35.0% 0.203 271.6);
Tailwind
colors: {
  custom: {
    50: '#755abe',
    500: '#2118a1',
    950: '#000000',
  },
}
SCSS
$custom: #2118a1;
$custom-light: #755abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2118a1",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 243.942,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35039,
    "c": 0.20251,
    "h": 271.6
  },
  "luminance": 0.0355
}

Semantic roles & 50–950 ramp

primary
#2118A1
secondary
#BFC74E
accent
#F137E5
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2118A1

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

Preview Lab → · Contrast checker → · Palette generator →

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