#271983#271983

#271983 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.164 H 277.6°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#271983
RGBrgb(39, 25, 131)
HSLhsl(248, 68%, 31%)
HSVhsv(248, 81%, 51%)
CMYKcmyk(70.2%, 80.9%, 0%, 48.6%)
CIE-LABlab(19.08, 39.59, -56.39)
CIE-LCHlch(19.08, 68.90, 305.07°)
OKLaboklab(31.99% 0.0218 -0.1629)
OKLCHoklch(31.99% 0.164 277.6)
XYZxyz(5.2797, 2.7648, 21.7238)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271983 #758319
analogous
#194083 #271983 #5C1983
triadic
#271983 #832719 #198327
tetradic
#271983 #831940 #758319 #19835C
square
#271983 #831940 #758319 #19835C
split-complementary
#271983 #835C19 #408319
monochromatic
#08051C #180F50 #271983 #3623B6 #513DDA

Accessibility & contrast

On white

13.52
#271983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271983
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271983#FFFFFF#000000##FFFFFF
##2719831.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003286
Deuteranopia (green-blind)
#002A81
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271983;
/* rgb */ color: rgb(39, 25, 131);
/* oklch */ color: oklch(32.0% 0.164 277.6);
Tailwind
colors: {
  custom: {
    50: '#7059a8',
    500: '#271983',
    950: '#000000',
  },
}
SCSS
$custom: #271983;
$custom-light: #7059a8;
$custom-dark: #000000;
JSON
{
  "hex": "#271983",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 131
  },
  "hsl": {
    "h": 247.925,
    "s": 67.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31991,
    "c": 0.16438,
    "h": 277.6
  },
  "luminance": 0.02765
}

Semantic roles & 50–950 ramp

primary
#271983
secondary
#A7B741
accent
#EB3DD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271983

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

Preview Lab → · Contrast checker → · Palette generator →

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