#270D58#270D58

#270D58 is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.7% C 0.122 H 290.8°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#270D58
RGBrgb(39, 13, 88)
HSLhsl(261, 74%, 20%)
HSVhsv(261, 85%, 35%)
CMYKcmyk(55.7%, 85.2%, 0%, 65.5%)
CIE-LABlab(12.11, 32.16, -39.80)
CIE-LCHlch(12.11, 51.17, 308.94°)
OKLaboklab(25.7% 0.0435 -0.1144)
OKLCHoklch(25.7% 0.122 290.8)
XYZxyz(2.7416, 1.4236, 9.3610)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270D58 #3E580D
analogous
#0D1958 #270D58 #4D0D58
triadic
#270D58 #58270D #0D5827
tetradic
#270D58 #580D19 #3E580D #0D584D
square
#270D58 #580D19 #3E580D #0D584D
split-complementary
#270D58 #584D0D #19580D
monochromatic
#0C041B #0F0523 #270D58 #3F158D #561DC3

Accessibility & contrast

On white

16.34
#270D58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#270D58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270D58
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270D58#FFFFFF#000000##FFFFFF
##270D581.0016.341.2816.34
#FFFFFF16.341.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215A
Deuteranopia (green-blind)
#001E57
Tritanopia (blue-blind)
#152333
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #270d58;
/* rgb */ color: rgb(39, 13, 88);
/* oklch */ color: oklch(25.7% 0.122 290.8);
Tailwind
colors: {
  custom: {
    50: '#684f88',
    500: '#270d58',
    950: '#000000',
  },
}
SCSS
$custom: #270d58;
$custom-light: #684f88;
$custom-dark: #000000;
JSON
{
  "hex": "#270d58",
  "rgb": {
    "r": 39,
    "g": 13,
    "b": 88
  },
  "hsl": {
    "h": 260.8,
    "s": 74.257,
    "l": 19.804
  },
  "oklch": {
    "l": 0.25701,
    "c": 0.12237,
    "h": 290.8
  },
  "luminance": 0.01424
}

Semantic roles & 50–950 ramp

primary
#270D58
secondary
#70932E
accent
#F137B0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #270D58

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

Preview Lab → · Contrast checker → · Palette generator →

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