#27277F#27277F

#27277F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.144 H 275.4°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#27277F
RGBrgb(39, 39, 127)
HSLhsl(240, 53%, 33%)
HSVhsv(240, 69%, 50%)
CMYKcmyk(69.3%, 69.3%, 0%, 50.2%)
CIE-LABlab(21.63, 29.91, -49.65)
CIE-LCHlch(21.63, 57.97, 301.07°)
OKLaboklab(33.68% 0.0136 -0.1433)
OKLCHoklch(33.68% 0.144 275.4)
XYZxyz(5.3917, 3.4142, 20.4494)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27277F #7F7F27
analogous
#27537F #27277F #53277F
triadic
#27277F #7F2727 #277F27
tetradic
#27277F #7F2753 #7F7F27 #277F53
square
#27277F #7F2753 #7F7F27 #277F53
split-complementary
#27277F #7F5327 #537F27
monochromatic
#0A0A21 #191950 #27277F #3535AE #5555CB

Accessibility & contrast

On white

12.48
#27277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27277F
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27277F#FFFFFF#000000##FFFFFF
##27277F1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #27277f;
/* rgb */ color: rgb(39, 39, 127);
/* oklch */ color: oklch(33.7% 0.144 275.4);
Tailwind
colors: {
  custom: {
    50: '#6e61a5',
    500: '#27277f',
    950: '#000000',
  },
}
SCSS
$custom: #27277f;
$custom-light: #6e61a5;
$custom-dark: #000000;
JSON
{
  "hex": "#27277f",
  "rgb": {
    "r": 39,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 240,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33683,
    "c": 0.14398,
    "h": 275.4
  },
  "luminance": 0.03415
}

Semantic roles & 50–950 ramp

primary
#27277F
secondary
#B0B052
accent
#DC4BDC
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #27277F

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

Preview Lab → · Contrast checker → · Palette generator →

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