#270F57#270F57

#270F57 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.119 H 290.8°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#270F57
RGBrgb(39, 15, 87)
HSLhsl(260, 71%, 20%)
HSVhsv(260, 83%, 34%)
CMYKcmyk(55.2%, 82.8%, 0%, 65.9%)
CIE-LABlab(12.36, 30.84, -38.72)
CIE-LCHlch(12.36, 49.50, 308.54°)
OKLaboklab(25.84% 0.0422 -0.1112)
OKLCHoklch(25.84% 0.119 290.8)
XYZxyz(2.7273, 1.4610, 9.1533)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F57 #3F570F
analogous
#0F1B57 #270F57 #4B0F57
triadic
#270F57 #57270F #0F5727
tetradic
#270F57 #570F1B #3F570F #0F574B
square
#270F57 #570F1B #3F570F #0F574B
split-complementary
#270F57 #574B0F #1B570F
monochromatic
#0C051A #100623 #270F57 #3E188B #5621BF

Accessibility & contrast

On white

16.25
#270F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270F57
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F57#FFFFFF#000000##FFFFFF
##270F571.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002159
Deuteranopia (green-blind)
#001F56
Tritanopia (blue-blind)
#162332
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #270f57;
/* rgb */ color: rgb(39, 15, 87);
/* oklch */ color: oklch(25.8% 0.119 290.8);
Tailwind
colors: {
  custom: {
    50: '#685087',
    500: '#270f57',
    950: '#000000',
  },
}
SCSS
$custom: #270f57;
$custom-light: #685087;
$custom-dark: #000000;
JSON
{
  "hex": "#270f57",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 87
  },
  "hsl": {
    "h": 260,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.25838,
    "c": 0.11897,
    "h": 290.8
  },
  "luminance": 0.01461
}

Semantic roles & 50–950 ramp

primary
#270F57
secondary
#719131
accent
#ED3AB2
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #270F57

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

Preview Lab → · Contrast checker → · Palette generator →

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