#270F76#270F76

#270F76 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.157 H 281.4°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#270F76
RGBrgb(39, 15, 118)
HSLhsl(254, 77%, 26%)
HSVhsv(254, 87%, 46%)
CMYKcmyk(66.9%, 87.3%, 0%, 53.7%)
CIE-LABlab(15.91, 40.31, -53.34)
CIE-LCHlch(15.91, 66.86, 307.08°)
OKLaboklab(29.35% 0.031 -0.1539)
OKLCHoklch(29.35% 0.157 281.4)
XYZxyz(4.2765, 2.0807, 17.3123)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F76 #5E760F
analogous
#0F2A76 #270F76 #5A0F76
triadic
#270F76 #76270F #0F7627
tetradic
#270F76 #760F2A #5E760F #0F765A
square
#270F76 #760F2A #5E760F #0F765A
split-complementary
#270F76 #765A0F #2A760F
monochromatic
#09031B #150840 #270F76 #3916AC #4B1DE2

Accessibility & contrast

On white

14.83
#270F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#270F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270F76
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F76#FFFFFF#000000##FFFFFF
##270F761.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B79
Deuteranopia (green-blind)
#002474
Tritanopia (blue-blind)
#003044
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #270f76;
/* rgb */ color: rgb(39, 15, 118);
/* oklch */ color: oklch(29.3% 0.157 281.4);
Tailwind
colors: {
  custom: {
    50: '#6e539f',
    500: '#270f76',
    950: '#000000',
  },
}
SCSS
$custom: #270f76;
$custom-light: #6e539f;
$custom-dark: #000000;
JSON
{
  "hex": "#270f76",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 118
  },
  "hsl": {
    "h": 253.981,
    "s": 77.444,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29347,
    "c": 0.157,
    "h": 281.4
  },
  "luminance": 0.02081
}

Semantic roles & 50–950 ramp

primary
#270F76
secondary
#91AD33
accent
#F434C7
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #270F76

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

Preview Lab → · Contrast checker → · Palette generator →

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