#270F56#270F56

#270F56 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.7% C 0.118 H 291.2°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#270F56
RGBrgb(39, 15, 86)
HSLhsl(260, 70%, 20%)
HSVhsv(260, 83%, 34%)
CMYKcmyk(54.7%, 82.6%, 0%, 66.3%)
CIE-LABlab(12.25, 30.53, -38.21)
CIE-LCHlch(12.25, 48.91, 308.63°)
OKLaboklab(25.73% 0.0425 -0.1098)
OKLCHoklch(25.73% 0.118 291.2)
XYZxyz(2.6868, 1.4448, 8.9396)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F56 #3E560F
analogous
#0F1A56 #270F56 #4B0F56
triadic
#270F56 #56270F #0F5627
tetradic
#270F56 #560F1A #3E560F #0F564B
square
#270F56 #560F1A #3E560F #0F564B
split-complementary
#270F56 #564B0F #1A560F
monochromatic
#0C051A #0F0622 #270F56 #3F188A #5621BE

Accessibility & contrast

On white

16.29
#270F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270F56
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F56#FFFFFF#000000##FFFFFF
##270F561.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002158
Deuteranopia (green-blind)
#001E55
Tritanopia (blue-blind)
#172332
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #270f56;
/* rgb */ color: rgb(39, 15, 86);
/* oklch */ color: oklch(25.7% 0.118 291.2);
Tailwind
colors: {
  custom: {
    50: '#675086',
    500: '#270f56',
    950: '#000000',
  },
}
SCSS
$custom: #270f56;
$custom-light: #675086;
$custom-dark: #000000;
JSON
{
  "hex": "#270f56",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 260.282,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.25732,
    "c": 0.1177,
    "h": 291.2
  },
  "luminance": 0.01445
}

Semantic roles & 50–950 ramp

primary
#270F56
secondary
#709031
accent
#ED3BB1
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #270F56

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

Preview Lab → · Contrast checker → · Palette generator →

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