#2C27B8#2C27B8

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

Color values

HEX#2C27B8
RGBrgb(44, 39, 184)
HSLhsl(242, 65%, 44%)
HSVhsv(242, 79%, 72%)
CMYKcmyk(76.1%, 78.8%, 0%, 27.8%)
CIE-LABlab(27.97, 49.72, -74.09)
CIE-LCHlch(27.97, 89.23, 303.87°)
OKLaboklab(40.07% 0.0094 -0.2144)
OKLCHoklch(40.07% 0.215 272.5)
XYZxyz(10.4131, 5.4461, 45.8405)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C27B8 #B3B827
analogous
#276AB8 #2C27B8 #7427B8
triadic
#2C27B8 #B82C27 #27B82C
tetradic
#2C27B8 #B8276A #B3B827 #27B874
square
#2C27B8 #B8276A #B3B827 #27B874
split-complementary
#2C27B8 #B87427 #6AB827
monochromatic
#141253 #201C86 #2C27B8 #4A45D8 #7B77E2

Accessibility & contrast

On white

10.05
#2C27B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2C27B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C27B8
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C27B8#FFFFFF#000000##FFFFFF
##2C27B81.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)
#0049BC
Deuteranopia (green-blind)
#003BB6
Tritanopia (blue-blind)
#00546F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2c27b8;
/* rgb */ color: rgb(44, 39, 184);
/* oklch */ color: oklch(40.1% 0.215 272.5);
Tailwind
colors: {
  custom: {
    50: '#7d64cf',
    500: '#2c27b8',
    950: '#000000',
  },
}
SCSS
$custom: #2c27b8;
$custom-light: #7d64cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c27b8",
  "rgb": {
    "r": 44,
    "g": 39,
    "b": 184
  },
  "hsl": {
    "h": 242.069,
    "s": 65.022,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40065,
    "c": 0.21462,
    "h": 272.5
  },
  "luminance": 0.05447
}

Semantic roles & 50–950 ramp

primary
#2C27B8
secondary
#C7CA71
accent
#E840E2
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #2C27B8

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

Preview Lab → · Contrast checker → · Palette generator →

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