#2127BD#2127BD

#2127BD is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 40.1% C 0.223 H 269.1°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#2127BD
RGBrgb(33, 39, 189)
HSLhsl(238, 70%, 44%)
HSVhsv(238, 83%, 74%)
CMYKcmyk(82.5%, 79.4%, 0%, 25.9%)
CIE-LABlab(27.97, 50.64, -77.06)
CIE-LCHlch(27.97, 92.21, 303.31°)
OKLaboklab(40.08% -0.0035 -0.2232)
OKLCHoklch(40.08% 0.223 269.1)
XYZxyz(10.5349, 5.4472, 48.6304)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2127BD #BDB721
analogous
#2175BD #2127BD #6921BD
triadic
#2127BD #BD2127 #27BD21
tetradic
#2127BD #BD2175 #BDB721 #21BD69
square
#2127BD #BD2175 #BDB721 #21BD69
split-complementary
#2127BD #BD6921 #75BD21
monochromatic
#0F1155 #181C89 #2127BD #3E44DD #7276E6

Accessibility & contrast

On white

10.05
#2127BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2127BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2127BD
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2127BD#FFFFFF#000000##FFFFFF
##2127BD1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC1
Deuteranopia (green-blind)
#003ABA
Tritanopia (blue-blind)
#005672
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2127bd;
/* rgb */ color: rgb(33, 39, 189);
/* oklch */ color: oklch(40.1% 0.223 269.1);
Tailwind
colors: {
  custom: {
    50: '#7b64d2',
    500: '#2127bd',
    950: '#000000',
  },
}
SCSS
$custom: #2127bd;
$custom-light: #7b64d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2127bd",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 189
  },
  "hsl": {
    "h": 237.692,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40079,
    "c": 0.22326,
    "h": 269.1
  },
  "luminance": 0.05448
}

Semantic roles & 50–950 ramp

primary
#2127BD
secondary
#CDC96D
accent
#E63BED
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2127BD

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

Preview Lab → · Contrast checker → · Palette generator →

#2127BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva