#271988#271988

#271988 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.171 H 276.9°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#271988
RGBrgb(39, 25, 136)
HSLhsl(248, 69%, 32%)
HSVhsv(248, 82%, 53%)
CMYKcmyk(71.3%, 81.6%, 0%, 46.7%)
CIE-LABlab(19.65, 41.19, -58.58)
CIE-LCHlch(19.65, 71.61, 305.11°)
OKLaboklab(32.56% 0.0204 -0.1693)
OKLCHoklch(32.56% 0.171 276.9)
XYZxyz(5.6268, 2.9037, 23.5517)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271988 #7A8819
analogous
#194388 #271988 #5F1988
triadic
#271988 #882719 #198827
tetradic
#271988 #881943 #7A8819 #19885F
square
#271988 #881943 #7A8819 #19885F
split-complementary
#271988 #885F19 #438819
monochromatic
#090621 #180F54 #271988 #3623BC #5340DC

Accessibility & contrast

On white

13.28
#271988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#271988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271988
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271988#FFFFFF#000000##FFFFFF
##2719881.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002B86
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #271988;
/* rgb */ color: rgb(39, 25, 136);
/* oklch */ color: oklch(32.6% 0.171 276.9);
Tailwind
colors: {
  custom: {
    50: '#7159ac',
    500: '#271988',
    950: '#000000',
  },
}
SCSS
$custom: #271988;
$custom-light: #7159ac;
$custom-dark: #000000;
JSON
{
  "hex": "#271988",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 247.568,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32563,
    "c": 0.17053,
    "h": 276.9
  },
  "luminance": 0.02904
}

Semantic roles & 50–950 ramp

primary
#271988
secondary
#ACBB41
accent
#EC3CD6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271988

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

Preview Lab → · Contrast checker → · Palette generator →

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