#271779#271779

#271779 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.154 H 279.6°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#271779
RGBrgb(39, 23, 121)
HSLhsl(250, 68%, 28%)
HSVhsv(250, 81%, 47%)
CMYKcmyk(67.8%, 81%, 0%, 52.5%)
CIE-LABlab(17.57, 37.41, -52.51)
CIE-LCHlch(17.57, 64.48, 305.47°)
OKLaboklab(30.61% 0.0258 -0.1516)
OKLCHoklch(30.61% 0.154 279.6)
XYZxyz(4.5932, 2.4242, 18.3113)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271779 #697917
analogous
#173879 #271779 #581779
triadic
#271779 #792717 #177927
tetradic
#271779 #791738 #697917 #177958
square
#271779 #791738 #697917 #177958
split-complementary
#271779 #795817 #387917
monochromatic
#08051A #160D46 #271779 #3821AC #4D32D8

Accessibility & contrast

On white

14.14
#271779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#271779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271779
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271779#FFFFFF#000000##FFFFFF
##2717791.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002777
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271779;
/* rgb */ color: rgb(39, 23, 121);
/* oklch */ color: oklch(30.6% 0.154 279.6);
Tailwind
colors: {
  custom: {
    50: '#6e57a1',
    500: '#271779',
    950: '#000000',
  },
}
SCSS
$custom: #271779;
$custom-light: #6e57a1;
$custom-dark: #000000;
JSON
{
  "hex": "#271779",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 249.796,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30605,
    "c": 0.15378,
    "h": 279.6
  },
  "luminance": 0.02425
}

Semantic roles & 50–950 ramp

primary
#271779
secondary
#9CAE3E
accent
#EB3DCF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #271779

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

Preview Lab → · Contrast checker → · Palette generator →

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