#271790#271790

#271790 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.182 H 276.0°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#271790
RGBrgb(39, 23, 144)
HSLhsl(248, 72%, 33%)
HSVhsv(248, 84%, 56%)
CMYKcmyk(72.9%, 84%, 0%, 43.5%)
CIE-LABlab(20.27, 44.67, -62.56)
CIE-LCHlch(20.27, 76.87, 305.53°)
OKLaboklab(33.27% 0.0189 -0.1808)
OKLCHoklch(33.27% 0.182 276)
XYZxyz(6.1755, 3.0572, 26.6448)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271790 #809017
analogous
#174390 #271790 #631790
triadic
#271790 #902717 #179027
tetradic
#271790 #901743 #809017 #179063
square
#271790 #901743 #809017 #179063
split-complementary
#271790 #906317 #439017
monochromatic
#0A0626 #190F5B #271790 #351FC5 #5641E1

Accessibility & contrast

On white

13.03
#271790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#271790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271790
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271790#FFFFFF#000000##FFFFFF
##2717901.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003693
Deuteranopia (green-blind)
#002B8E
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #271790;
/* rgb */ color: rgb(39, 23, 144);
/* oklch */ color: oklch(33.3% 0.182 276.0);
Tailwind
colors: {
  custom: {
    50: '#7359b2',
    500: '#271790',
    950: '#000000',
  },
}
SCSS
$custom: #271790;
$custom-light: #7359b2;
$custom-dark: #000000;
JSON
{
  "hex": "#271790",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 247.934,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33268,
    "c": 0.1818,
    "h": 276
  },
  "luminance": 0.03058
}

Semantic roles & 50–950 ramp

primary
#271790
secondary
#B0C142
accent
#EF39D7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271790

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

Preview Lab → · Contrast checker → · Palette generator →

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