#271699#271699

#271699 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.2% C 0.193 H 274.9°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#271699
RGBrgb(39, 22, 153)
HSLhsl(248, 75%, 34%)
HSVhsv(248, 86%, 60%)
CMYKcmyk(74.5%, 85.6%, 0%, 40%)
CIE-LABlab(21.22, 47.84, -66.55)
CIE-LCHlch(21.22, 81.96, 305.71°)
OKLaboklab(34.24% 0.0165 -0.1924)
OKLCHoklch(34.24% 0.193 274.9)
XYZxyz(6.8715, 3.3044, 30.4065)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271699 #889916
analogous
#164799 #271699 #691699
triadic
#271699 #992716 #169927
tetradic
#271699 #991647 #889916 #169969
square
#271699 #991647 #889916 #169969
split-complementary
#271699 #996916 #479916
monochromatic
#0C072E #190E63 #271699 #351ECF #5A45E4

Accessibility & contrast

On white

12.64
#271699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#271699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271699
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271699#FFFFFF#000000##FFFFFF
##2716991.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00399C
Deuteranopia (green-blind)
#002D97
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #271699;
/* rgb */ color: rgb(39, 22, 153);
/* oklch */ color: oklch(34.2% 0.193 274.9);
Tailwind
colors: {
  custom: {
    50: '#7659b8',
    500: '#271699',
    950: '#000000',
  },
}
SCSS
$custom: #271699;
$custom-light: #7659b8;
$custom-dark: #000000;
JSON
{
  "hex": "#271699",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 153
  },
  "hsl": {
    "h": 247.786,
    "s": 74.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34241,
    "c": 0.19307,
    "h": 274.9
  },
  "luminance": 0.03305
}

Semantic roles & 50–950 ramp

primary
#271699
secondary
#B5C546
accent
#F136D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271699

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

Preview Lab → · Contrast checker → · Palette generator →

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