#27278C#27278C

#27278C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.161 H 274.2°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#27278C
RGBrgb(39, 39, 140)
HSLhsl(240, 56%, 35%)
HSVhsv(240, 72%, 55%)
CMYKcmyk(72.1%, 72.1%, 0%, 45.1%)
CIE-LABlab(22.91, 34.56, -55.71)
CIE-LCHlch(22.91, 65.55, 301.81°)
OKLaboklab(35% 0.0118 -0.161)
OKLCHoklch(35% 0.161 274.2)
XYZxyz(6.2943, 3.7752, 25.2028)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27278C #8C8C27
analogous
#27598C #27278C #59278C
triadic
#27278C #8C2727 #278C27
tetradic
#27278C #8C2759 #8C8C27 #278C59
square
#27278C #8C2759 #8C8C27 #278C59
split-complementary
#27278C #8C5927 #598C27
monochromatic
#0C0C2C #1A1A5C #27278C #3434BC #5C5CD2

Accessibility & contrast

On white

11.96
#27278C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#27278C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27278C
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27278C#FFFFFF#000000##FFFFFF
##27278C1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #27278c;
/* rgb */ color: rgb(39, 39, 140);
/* oklch */ color: oklch(35.0% 0.161 274.2);
Tailwind
colors: {
  custom: {
    50: '#7162af',
    500: '#27278c',
    950: '#000000',
  },
}
SCSS
$custom: #27278c;
$custom-light: #7162af;
$custom-dark: #000000;
JSON
{
  "hex": "#27278c",
  "rgb": {
    "r": 39,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 240,
    "s": 56.425,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34998,
    "c": 0.16147,
    "h": 274.2
  },
  "luminance": 0.03776
}

Semantic roles & 50–950 ramp

primary
#27278C
secondary
#B7B758
accent
#E048E0
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #27278C

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

Preview Lab → · Contrast checker → · Palette generator →

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