#270F55#270F55

#270F55 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.116 H 291.6°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#270F55
RGBrgb(39, 15, 85)
HSLhsl(261, 70%, 20%)
HSVhsv(261, 82%, 33%)
CMYKcmyk(54.1%, 82.4%, 0%, 66.7%)
CIE-LABlab(12.15, 30.23, -37.71)
CIE-LCHlch(12.15, 48.33, 308.72°)
OKLaboklab(25.63% 0.0428 -0.1083)
OKLCHoklch(25.63% 0.116 291.6)
XYZxyz(2.6468, 1.4288, 8.7289)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F55 #3D550F
analogous
#0F1A55 #270F55 #4A0F55
triadic
#270F55 #55270F #0F5527
tetradic
#270F55 #550F1A #3D550F #0F554A
square
#270F55 #550F1A #3D550F #0F554A
split-complementary
#270F55 #554A0F #1A550F
monochromatic
#0C051A #0F0621 #270F55 #3F1889 #5721BD

Accessibility & contrast

On white

16.33
#270F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#270F55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270F55
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F55#FFFFFF#000000##FFFFFF
##270F551.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002157
Deuteranopia (green-blind)
#001E54
Tritanopia (blue-blind)
#182231
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #270f55;
/* rgb */ color: rgb(39, 15, 85);
/* oklch */ color: oklch(25.6% 0.116 291.6);
Tailwind
colors: {
  custom: {
    50: '#675086',
    500: '#270f55',
    950: '#000000',
  },
}
SCSS
$custom: #270f55;
$custom-light: #675086;
$custom-dark: #000000;
JSON
{
  "hex": "#270f55",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 85
  },
  "hsl": {
    "h": 260.571,
    "s": 70,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25627,
    "c": 0.11643,
    "h": 291.6
  },
  "luminance": 0.01429
}

Semantic roles & 50–950 ramp

primary
#270F55
secondary
#6F8F31
accent
#ED3BB0
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #270F55

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

Preview Lab → · Contrast checker → · Palette generator →

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