#271982#271982

#271982 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.163 H 277.8°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#271982
RGBrgb(39, 25, 130)
HSLhsl(248, 68%, 30%)
HSVhsv(248, 81%, 51%)
CMYKcmyk(70%, 80.8%, 0%, 49%)
CIE-LABlab(18.96, 39.27, -55.95)
CIE-LCHlch(18.96, 68.35, 305.06°)
OKLaboklab(31.88% 0.0221 -0.1616)
OKLCHoklch(31.88% 0.163 277.8)
XYZxyz(5.2123, 2.7378, 21.3685)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271982 #748219
analogous
#193F82 #271982 #5B1982
triadic
#271982 #822719 #198227
tetradic
#271982 #82193F #748219 #19825B
square
#271982 #82193F #748219 #19825B
split-complementary
#271982 #825B19 #3F8219
monochromatic
#08051B #180F4F #271982 #3623B5 #513CD9

Accessibility & contrast

On white

13.57
#271982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#271982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271982
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271982#FFFFFF#000000##FFFFFF
##2719821.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003285
Deuteranopia (green-blind)
#002A80
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271982;
/* rgb */ color: rgb(39, 25, 130);
/* oklch */ color: oklch(31.9% 0.163 277.8);
Tailwind
colors: {
  custom: {
    50: '#7059a7',
    500: '#271982',
    950: '#000000',
  },
}
SCSS
$custom: #271982;
$custom-light: #7059a7;
$custom-dark: #000000;
JSON
{
  "hex": "#271982",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 248,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31877,
    "c": 0.16314,
    "h": 277.8
  },
  "luminance": 0.02738
}

Semantic roles & 50–950 ramp

primary
#271982
secondary
#A6B641
accent
#EB3DD3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271982

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

Preview Lab → · Contrast checker → · Palette generator →

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