#2117B3#2117B3

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

Color values

HEX#2117B3
RGBrgb(33, 23, 179)
HSLhsl(244, 77%, 40%)
HSVhsv(244, 87%, 70%)
CMYKcmyk(81.6%, 87.2%, 0%, 29.8%)
CIE-LABlab(24.29, 54.81, -77.24)
CIE-LCHlch(24.29, 94.71, 305.36°)
OKLaboklab(37.18% 0.0014 -0.2234)
OKLCHoklch(37.18% 0.223 270.4)
XYZxyz(9.0675, 4.1897, 42.9699)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2117B3 #A9B317
analogous
#175BB3 #2117B3 #6F17B3
triadic
#2117B3 #B32117 #17B321
tetradic
#2117B3 #B3175B #A9B317 #17B36F
square
#2117B3 #B3175B #A9B317 #17B36F
split-complementary
#2117B3 #B36F17 #5BB317
monochromatic
#0D0947 #17107D #2117B3 #3124E3 #645BEA

Accessibility & contrast

On white

11.42
#2117B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2117B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2117B3
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2117B3#FFFFFF#000000##FFFFFF
##2117B31.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.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: #2117b3;
/* rgb */ color: rgb(33, 23, 179);
/* oklch */ color: oklch(37.2% 0.223 270.4);
Tailwind
colors: {
  custom: {
    50: '#7a5bcb',
    500: '#2117b3',
    950: '#000000',
  },
}
SCSS
$custom: #2117b3;
$custom-light: #7a5bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2117b3",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 179
  },
  "hsl": {
    "h": 243.846,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37179,
    "c": 0.22341,
    "h": 270.4
  },
  "luminance": 0.04191
}

Semantic roles & 50–950 ramp

primary
#2117B3
secondary
#C6CD58
accent
#F434E7
background
#F8F5FC
surface
#EFE9F9
border
#CAC5D2
text
#0B0414
muted
#7C7982

Preview Lab

Preview with #2117B3

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

Preview Lab → · Contrast checker → · Palette generator →

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