#271778#271778

#271778 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.153 H 279.8°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#271778
RGBrgb(39, 23, 120)
HSLhsl(250, 68%, 28%)
HSVhsv(250, 81%, 47%)
CMYKcmyk(67.5%, 80.8%, 0%, 52.9%)
CIE-LABlab(17.46, 37.09, -52.06)
CIE-LCHlch(17.46, 63.92, 305.47°)
OKLaboklab(30.49% 0.0261 -0.1503)
OKLCHoklch(30.49% 0.153 279.8)
XYZxyz(4.5322, 2.3998, 17.9900)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271778 #687817
analogous
#173778 #271778 #571778
triadic
#271778 #782717 #177827
tetradic
#271778 #781737 #687817 #177857
square
#271778 #781737 #687817 #177857
split-complementary
#271778 #785717 #377817
monochromatic
#08051A #160D45 #271778 #3821AB #4D32D8

Accessibility & contrast

On white

14.19
#271778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#271778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271778
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271778#FFFFFF#000000##FFFFFF
##2717781.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002776
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271778;
/* rgb */ color: rgb(39, 23, 120);
/* oklch */ color: oklch(30.5% 0.153 279.8);
Tailwind
colors: {
  custom: {
    50: '#6e57a0',
    500: '#271778',
    950: '#000000',
  },
}
SCSS
$custom: #271778;
$custom-light: #6e57a0;
$custom-dark: #000000;
JSON
{
  "hex": "#271778",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 249.897,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30492,
    "c": 0.15253,
    "h": 279.8
  },
  "luminance": 0.024
}

Semantic roles & 50–950 ramp

primary
#271778
secondary
#9BAD3E
accent
#EB3DCE
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #271778

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

Preview Lab → · Contrast checker → · Palette generator →

#271778 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva