#2B27BC#2B27BC

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

Color values

HEX#2B27BC
RGBrgb(43, 39, 188)
HSLhsl(242, 66%, 45%)
HSVhsv(242, 79%, 74%)
CMYKcmyk(77.1%, 79.3%, 0%, 26.3%)
CIE-LABlab(28.36, 50.92, -75.81)
CIE-LCHlch(28.36, 91.32, 303.89°)
OKLaboklab(40.46% 0.0074 -0.2194)
OKLCHoklch(40.46% 0.22 271.9)
XYZxyz(10.7958, 5.5943, 48.0780)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B27BC #B8BC27
analogous
#276DBC #2B27BC #7627BC
triadic
#2B27BC #BC2B27 #27BC2B
tetradic
#2B27BC #BC276D #B8BC27 #27BC76
square
#2B27BC #BC276D #B8BC27 #27BC76
split-complementary
#2B27BC #BC7627 #6DBC27
monochromatic
#141257 #1F1C89 #2B27BC #4B47D9 #7D7AE3

Accessibility & contrast

On white

9.91
#2B27BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2B27BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B27BC
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B27BC#FFFFFF#000000##FFFFFF
##2B27BC1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC0
Deuteranopia (green-blind)
#003BB9
Tritanopia (blue-blind)
#005572
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2b27bc;
/* rgb */ color: rgb(43, 39, 188);
/* oklch */ color: oklch(40.5% 0.220 271.9);
Tailwind
colors: {
  custom: {
    50: '#7e65d2',
    500: '#2b27bc',
    950: '#000000',
  },
}
SCSS
$custom: #2b27bc;
$custom-light: #7e65d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b27bc",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 188
  },
  "hsl": {
    "h": 241.611,
    "s": 65.639,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40458,
    "c": 0.21953,
    "h": 271.9
  },
  "luminance": 0.05595
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B27BC

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

Preview Lab → · Contrast checker → · Palette generator →

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