#271990#271990

#271990 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.5% C 0.180 H 275.8°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#271990
RGBrgb(39, 25, 144)
HSLhsl(247, 70%, 33%)
HSVhsv(247, 83%, 56%)
CMYKcmyk(72.9%, 82.6%, 0%, 43.5%)
CIE-LABlab(20.59, 43.72, -62.02)
CIE-LCHlch(20.59, 75.88, 305.18°)
OKLaboklab(33.49% 0.0181 -0.1793)
OKLCHoklch(33.49% 0.18 275.8)
XYZxyz(6.2167, 3.1396, 26.6585)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271990 #829019
analogous
#194690 #271990 #621990
triadic
#271990 #902719 #199027
tetradic
#271990 #901946 #829019 #199062
square
#271990 #901946 #829019 #199062
split-complementary
#271990 #906219 #469019
monochromatic
#0B0728 #19105C #271990 #3522C4 #5745DF

Accessibility & contrast

On white

12.90
#271990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#271990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271990
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271990#FFFFFF#000000##FFFFFF
##2719901.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003793
Deuteranopia (green-blind)
#002C8E
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #271990;
/* rgb */ color: rgb(39, 25, 144);
/* oklch */ color: oklch(33.5% 0.180 275.8);
Tailwind
colors: {
  custom: {
    50: '#735ab2',
    500: '#271990',
    950: '#000000',
  },
}
SCSS
$custom: #271990;
$custom-light: #735ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#271990",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 144
  },
  "hsl": {
    "h": 247.059,
    "s": 70.414,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33491,
    "c": 0.18021,
    "h": 275.8
  },
  "luminance": 0.0314
}

Semantic roles & 50–950 ramp

primary
#271990
secondary
#B1C045
accent
#ED3BD8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271990

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

Preview Lab → · Contrast checker → · Palette generator →

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