#271882#271882

#271882 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.164 H 277.9°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#271882
RGBrgb(39, 24, 130)
HSLhsl(248, 69%, 30%)
HSVhsv(248, 82%, 51%)
CMYKcmyk(70%, 81.5%, 0%, 49%)
CIE-LABlab(18.78, 39.78, -56.24)
CIE-LCHlch(18.78, 68.89, 305.27°)
OKLaboklab(31.75% 0.0226 -0.1625)
OKLCHoklch(31.75% 0.164 277.9)
XYZxyz(5.1913, 2.6959, 21.3615)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271882 #738218
analogous
#183E82 #271882 #5C1882
triadic
#271882 #822718 #188227
tetradic
#271882 #82183E #738218 #18825C
square
#271882 #82183E #738218 #18825C
split-complementary
#271882 #825C18 #3E8218
monochromatic
#08051B #180E4E #271882 #3622B6 #513ADB

Accessibility & contrast

On white

13.64
#271882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#271882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271882
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271882#FFFFFF#000000##FFFFFF
##2718821.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003285
Deuteranopia (green-blind)
#002980
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271882;
/* rgb */ color: rgb(39, 24, 130);
/* oklch */ color: oklch(31.8% 0.164 277.9);
Tailwind
colors: {
  custom: {
    50: '#7058a7',
    500: '#271882',
    950: '#000000',
  },
}
SCSS
$custom: #271882;
$custom-light: #7058a7;
$custom-dark: #000000;
JSON
{
  "hex": "#271882",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 248.491,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31752,
    "c": 0.16405,
    "h": 277.9
  },
  "luminance": 0.02696
}

Semantic roles & 50–950 ramp

primary
#271882
secondary
#A5B640
accent
#EC3CD3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271882

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

Preview Lab → · Contrast checker → · Palette generator →

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