#271698#271698

#271698 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.1% C 0.192 H 275.0°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#271698
RGBrgb(39, 22, 152)
HSLhsl(248, 75%, 34%)
HSVhsv(248, 86%, 60%)
CMYKcmyk(74.3%, 85.5%, 0%, 40.4%)
CIE-LABlab(21.10, 47.54, -66.14)
CIE-LCHlch(21.10, 81.45, 305.71°)
OKLaboklab(34.12% 0.0168 -0.1912)
OKLCHoklch(34.12% 0.192 275)
XYZxyz(6.7892, 3.2715, 29.9733)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271698 #879816
analogous
#164698 #271698 #681698
triadic
#271698 #982716 #169827
tetradic
#271698 #981646 #879816 #169868
square
#271698 #981646 #879816 #169868
split-complementary
#271698 #986816 #469816
monochromatic
#0C072D #190E63 #271698 #351ECD #5944E4

Accessibility & contrast

On white

12.69
#271698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#271698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271698
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271698#FFFFFF#000000##FFFFFF
##2716981.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00389B
Deuteranopia (green-blind)
#002D96
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #271698;
/* rgb */ color: rgb(39, 22, 152);
/* oklch */ color: oklch(34.1% 0.192 275.0);
Tailwind
colors: {
  custom: {
    50: '#7559b8',
    500: '#271698',
    950: '#000000',
  },
}
SCSS
$custom: #271698;
$custom-light: #7559b8;
$custom-dark: #000000;
JSON
{
  "hex": "#271698",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 152
  },
  "hsl": {
    "h": 247.846,
    "s": 74.713,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34121,
    "c": 0.19191,
    "h": 275
  },
  "luminance": 0.03272
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271698

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

Preview Lab → · Contrast checker → · Palette generator →

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