#270F50#270F50

#270F50 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.110 H 293.7°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#270F50
RGBrgb(39, 15, 80)
HSLhsl(262, 68%, 19%)
HSVhsv(262, 81%, 31%)
CMYKcmyk(51.2%, 81.3%, 0%, 68.6%)
CIE-LABlab(11.64, 28.69, -35.13)
CIE-LCHlch(11.64, 45.35, 309.23°)
OKLaboklab(25.11% 0.0443 -0.1007)
OKLCHoklch(25.11% 0.11 293.7)
XYZxyz(2.4551, 1.3521, 7.7195)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F50 #38500F
analogous
#0F1750 #270F50 #470F50
triadic
#270F50 #50270F #0F5027
tetradic
#270F50 #500F17 #38500F #0F5047
square
#270F50 #500F17 #38500F #0F5047
split-complementary
#270F50 #50470F #17500F
monochromatic
#0D051A #0E051C #270F50 #401984 #5922B7

Accessibility & contrast

On white

16.53
#270F50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#270F50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270F50
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F50#FFFFFF#000000##FFFFFF
##270F501.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F52
Deuteranopia (green-blind)
#001E4F
Tritanopia (blue-blind)
#1B202E
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #270f50;
/* rgb */ color: rgb(39, 15, 80);
/* oklch */ color: oklch(25.1% 0.110 293.7);
Tailwind
colors: {
  custom: {
    50: '#665082',
    500: '#270f50',
    950: '#000000',
  },
}
SCSS
$custom: #270f50;
$custom-light: #665082;
$custom-dark: #000000;
JSON
{
  "hex": "#270f50",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 80
  },
  "hsl": {
    "h": 262.154,
    "s": 68.421,
    "l": 18.627
  },
  "oklch": {
    "l": 0.2511,
    "c": 0.11002,
    "h": 293.7
  },
  "luminance": 0.01352
}

Semantic roles & 50–950 ramp

primary
#270F50
secondary
#698A31
accent
#EB3DAB
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020A
muted
#7A787C

Preview Lab

Preview with #270F50

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

Preview Lab → · Contrast checker → · Palette generator →

#270F50 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva