#2B27BD#2B27BD

#2B27BD is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.6% C 0.221 H 271.9°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#2B27BD
RGBrgb(43, 39, 189)
HSLhsl(242, 66%, 45%)
HSVhsv(242, 79%, 74%)
CMYKcmyk(77.2%, 79.4%, 0%, 25.9%)
CIE-LABlab(28.48, 51.23, -76.21)
CIE-LCHlch(28.48, 91.83, 303.91°)
OKLaboklab(40.57% 0.0071 -0.2206)
OKLCHoklch(40.57% 0.221 271.9)
XYZxyz(10.9040, 5.6376, 48.6477)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B27BD #B9BD27
analogous
#276EBD #2B27BD #7627BD
triadic
#2B27BD #BD2B27 #27BD2B
tetradic
#2B27BD #BD276E #B9BD27 #27BD76
square
#2B27BD #BD276E #B9BD27 #27BD76
split-complementary
#2B27BD #BD7627 #6EBD27
monochromatic
#141258 #1F1D8A #2B27BD #4C48D9 #7E7BE4

Accessibility & contrast

On white

9.87
#2B27BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2B27BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B27BD
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B27BD#FFFFFF#000000##FFFFFF
##2B27BD1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b27bd;
/* rgb */ color: rgb(43, 39, 189);
/* oklch */ color: oklch(40.6% 0.221 271.9);
Tailwind
colors: {
  custom: {
    50: '#7e65d2',
    500: '#2b27bd',
    950: '#000000',
  },
}
SCSS
$custom: #2b27bd;
$custom-light: #7e65d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b27bd",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 189
  },
  "hsl": {
    "h": 241.6,
    "s": 65.789,
    "l": 44.706
  },
  "oklch": {
    "l": 0.40571,
    "c": 0.2207,
    "h": 271.9
  },
  "luminance": 0.05639
}

Semantic roles & 50–950 ramp

primary
#2B27BD
secondary
#C9CC74
accent
#E93FE4
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2B27BD

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

Preview Lab → · Contrast checker → · Palette generator →

#2B27BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva