#27277E#27277E

#27277E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.143 H 275.5°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#27277E
RGBrgb(39, 39, 126)
HSLhsl(240, 53%, 32%)
HSVhsv(240, 69%, 49%)
CMYKcmyk(69%, 69%, 0%, 50.6%)
CIE-LABlab(21.54, 29.55, -49.18)
CIE-LCHlch(21.54, 57.37, 301.00°)
OKLaboklab(33.59% 0.0137 -0.1419)
OKLCHoklch(33.59% 0.143 275.5)
XYZxyz(5.3269, 3.3883, 20.1079)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27277E #7E7E27
analogous
#27537E #27277E #53277E
triadic
#27277E #7E2727 #277E27
tetradic
#27277E #7E2753 #7E7E27 #277E53
square
#27277E #7E2753 #7E7E27 #277E53
split-complementary
#27277E #7E5327 #537E27
monochromatic
#0A0A21 #19194F #27277E #3535AD #5555CA

Accessibility & contrast

On white

12.52
#27277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#27277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27277E
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27277E#FFFFFF#000000##FFFFFF
##27277E1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #27277e;
/* rgb */ color: rgb(39, 39, 126);
/* oklch */ color: oklch(33.6% 0.143 275.5);
Tailwind
colors: {
  custom: {
    50: '#6e61a4',
    500: '#27277e',
    950: '#000000',
  },
}
SCSS
$custom: #27277e;
$custom-light: #6e61a4;
$custom-dark: #000000;
JSON
{
  "hex": "#27277e",
  "rgb": {
    "r": 39,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 240,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33585,
    "c": 0.14261,
    "h": 275.5
  },
  "luminance": 0.03389
}

Semantic roles & 50–950 ramp

primary
#27277E
secondary
#AFAF52
accent
#DC4CDC
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #27277E

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

Preview Lab → · Contrast checker → · Palette generator →

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