#271682#271682

#271682 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.166 H 278.2°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#271682
RGBrgb(39, 22, 130)
HSLhsl(249, 71%, 30%)
HSVhsv(249, 83%, 51%)
CMYKcmyk(70%, 83.1%, 0%, 49%)
CIE-LABlab(18.44, 40.79, -56.81)
CIE-LCHlch(18.44, 69.94, 305.67°)
OKLaboklab(31.51% 0.0236 -0.1641)
OKLCHoklch(31.51% 0.166 278.2)
XYZxyz(5.1516, 2.6164, 21.3483)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271682 #718216
analogous
#163B82 #271682 #5D1682
triadic
#271682 #822716 #168227
tetradic
#271682 #82163B #718216 #16825D
square
#271682 #82163B #718216 #16825D
split-complementary
#271682 #825D16 #3B8216
monochromatic
#08041A #170D4E #271682 #371FB6 #5035DD

Accessibility & contrast

On white

13.78
#271682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#271682 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271682
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271682#FFFFFF#000000##FFFFFF
##2716821.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003185
Deuteranopia (green-blind)
#002880
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #271682;
/* rgb */ color: rgb(39, 22, 130);
/* oklch */ color: oklch(31.5% 0.166 278.2);
Tailwind
colors: {
  custom: {
    50: '#7057a8',
    500: '#271682',
    950: '#000000',
  },
}
SCSS
$custom: #271682;
$custom-light: #7057a8;
$custom-dark: #000000;
JSON
{
  "hex": "#271682",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 130
  },
  "hsl": {
    "h": 249.444,
    "s": 71.053,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31513,
    "c": 0.16581,
    "h": 278.2
  },
  "luminance": 0.02617
}

Semantic roles & 50–950 ramp

primary
#271682
secondary
#A3B73D
accent
#EE3AD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271682

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

Preview Lab → · Contrast checker → · Palette generator →

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