#271978#271978

#271978 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.151 H 279.5°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#271978
RGBrgb(39, 25, 120)
HSLhsl(249, 66%, 28%)
HSVhsv(249, 79%, 47%)
CMYKcmyk(67.5%, 79.2%, 0%, 52.9%)
CIE-LABlab(17.84, 36.00, -51.43)
CIE-LCHlch(17.84, 62.78, 304.99°)
OKLaboklab(30.76% 0.0248 -0.1485)
OKLCHoklch(30.76% 0.151 279.5)
XYZxyz(4.5734, 2.4823, 18.0038)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271978 #6A7819
analogous
#193A78 #271978 #561978
triadic
#271978 #782719 #197827
tetradic
#271978 #78193A #6A7819 #197856
square
#271978 #78193A #6A7819 #197856
split-complementary
#271978 #785619 #3A7819
monochromatic
#080519 #170E45 #271978 #3724AB #4E36D5

Accessibility & contrast

On white

14.03
#271978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#271978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271978
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271978#FFFFFF#000000##FFFFFF
##2719781.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002876
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271978;
/* rgb */ color: rgb(39, 25, 120);
/* oklch */ color: oklch(30.8% 0.151 279.5);
Tailwind
colors: {
  custom: {
    50: '#6e58a0',
    500: '#271978',
    950: '#000000',
  },
}
SCSS
$custom: #271978;
$custom-light: #6e58a0;
$custom-dark: #000000;
JSON
{
  "hex": "#271978",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 248.842,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30757,
    "c": 0.15055,
    "h": 279.5
  },
  "luminance": 0.02483
}

Semantic roles & 50–950 ramp

primary
#271978
secondary
#9DAD40
accent
#E83FD0
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #271978

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

Preview Lab → · Contrast checker → · Palette generator →

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