#27216C#27216C

#27216C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.8% C 0.125 H 279.7°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#27216C
RGBrgb(39, 33, 108)
HSLhsl(245, 53%, 28%)
HSVhsv(245, 69%, 42%)
CMYKcmyk(63.9%, 69.4%, 0%, 57.6%)
CIE-LABlab(18.37, 27.01, -42.80)
CIE-LCHlch(18.37, 50.61, 302.25°)
OKLaboklab(30.77% 0.021 -0.1233)
OKLCHoklch(30.77% 0.125 279.7)
XYZxyz(4.0865, 2.6015, 14.4712)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27216C #666C21
analogous
#21406C #27216C #4C216C
triadic
#27216C #6C2721 #216C27
tetradic
#27216C #6C2140 #666C21 #216C4C
square
#27216C #6C2140 #666C21 #216C4C
split-complementary
#27216C #6C4C21 #406C21
monochromatic
#080717 #16133D #27216C #382F9B #4D42C5

Accessibility & contrast

On white

13.81
#27216C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#27216C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27216C
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27216C#FFFFFF#000000##FFFFFF
##27216C1.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#002A6B
Tritanopia (blue-blind)
#003443
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #27216c;
/* rgb */ color: rgb(39, 33, 108);
/* oklch */ color: oklch(30.8% 0.125 279.7);
Tailwind
colors: {
  custom: {
    50: '#6a5d97',
    500: '#27216c',
    950: '#000000',
  },
}
SCSS
$custom: #27216c;
$custom-light: #6a5d97;
$custom-dark: #000000;
JSON
{
  "hex": "#27216c",
  "rgb": {
    "r": 39,
    "g": 33,
    "b": 108
  },
  "hsl": {
    "h": 244.8,
    "s": 53.191,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30766,
    "c": 0.12507,
    "h": 279.7
  },
  "luminance": 0.02602
}

Semantic roles & 50–950 ramp

primary
#27216C
secondary
#99A049
accent
#DD4BD1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #27216C

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

Preview Lab → · Contrast checker → · Palette generator →

#27216C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva