#2118B3#2118B3

#2118B3 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.3% C 0.223 H 270.3°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#2118B3
RGBrgb(33, 24, 179)
HSLhsl(243, 76%, 40%)
HSVhsv(243, 87%, 70%)
CMYKcmyk(81.6%, 86.6%, 0%, 29.8%)
CIE-LABlab(24.42, 54.42, -77.02)
CIE-LCHlch(24.42, 94.31, 305.24°)
OKLaboklab(37.27% 0.0013 -0.2228)
OKLCHoklch(37.27% 0.223 270.3)
XYZxyz(9.0878, 4.2302, 42.9766)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2118B3 #AAB318
analogous
#185CB3 #2118B3 #6F18B3
triadic
#2118B3 #B32118 #18B321
tetradic
#2118B3 #B3185C #AAB318 #18B36F
square
#2118B3 #B3185C #AAB318 #18B36F
split-complementary
#2118B3 #B36F18 #5CB318
monochromatic
#0D0A47 #17117D #2118B3 #3126E2 #645CE9

Accessibility & contrast

On white

11.37
#2118B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2118B3
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2118B3#FFFFFF#000000##FFFFFF
##2118B31.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.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: #2118b3;
/* rgb */ color: rgb(33, 24, 179);
/* oklch */ color: oklch(37.3% 0.223 270.3);
Tailwind
colors: {
  custom: {
    50: '#7a5ccb',
    500: '#2118b3',
    950: '#000000',
  },
}
SCSS
$custom: #2118b3;
$custom-light: #7a5ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#2118b3",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 179
  },
  "hsl": {
    "h": 243.484,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37267,
    "c": 0.22281,
    "h": 270.3
  },
  "luminance": 0.04231
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2118B3

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

Preview Lab → · Contrast checker → · Palette generator →

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