#27216E#27216E

#27216E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.128 H 279.3°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#27216E
RGBrgb(39, 33, 110)
HSLhsl(245, 54%, 28%)
HSVhsv(245, 70%, 43%)
CMYKcmyk(64.5%, 70%, 0%, 56.9%)
CIE-LABlab(18.56, 27.72, -43.80)
CIE-LCHlch(18.56, 51.83, 302.33°)
OKLaboklab(30.96% 0.0208 -0.1262)
OKLCHoklch(30.96% 0.128 279.3)
XYZxyz(4.1941, 2.6445, 15.0383)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27216E #686E21
analogous
#21416E #27216E #4D216E
triadic
#27216E #6E2721 #216E27
tetradic
#27216E #6E2141 #686E21 #216E4D
square
#27216E #6E2141 #686E21 #216E4D
split-complementary
#27216E #6E4D21 #416E21
monochromatic
#080718 #16133F #27216E #382F9D #4D43C7

Accessibility & contrast

On white

13.73
#27216E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#27216E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27216E
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27216E#FFFFFF#000000##FFFFFF
##27216E1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#002A6D
Tritanopia (blue-blind)
#003544
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #27216e;
/* rgb */ color: rgb(39, 33, 110);
/* oklch */ color: oklch(31.0% 0.128 279.3);
Tailwind
colors: {
  custom: {
    50: '#6a5d98',
    500: '#27216e',
    950: '#000000',
  },
}
SCSS
$custom: #27216e;
$custom-light: #6a5d98;
$custom-dark: #000000;
JSON
{
  "hex": "#27216e",
  "rgb": {
    "r": 39,
    "g": 33,
    "b": 110
  },
  "hsl": {
    "h": 244.675,
    "s": 53.846,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30961,
    "c": 0.12789,
    "h": 279.3
  },
  "luminance": 0.02645
}

Semantic roles & 50–950 ramp

primary
#27216E
secondary
#9BA249
accent
#DD4BD2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #27216E

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

Preview Lab → · Contrast checker → · Palette generator →

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