#270F68#270F68

#270F68 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.140 H 285.0°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#270F68
RGBrgb(39, 15, 104)
HSLhsl(256, 75%, 23%)
HSVhsv(256, 86%, 41%)
CMYKcmyk(62.5%, 85.6%, 0%, 59.2%)
CIE-LABlab(14.24, 36.07, -46.97)
CIE-LCHlch(14.24, 59.22, 307.53°)
OKLaboklab(27.72% 0.0362 -0.1353)
OKLCHoklch(27.72% 0.14 285)
XYZxyz(3.5055, 1.7722, 13.2514)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F68 #50680F
analogous
#0F2368 #270F68 #530F68
triadic
#270F68 #68270F #0F6827
tetradic
#270F68 #680F23 #50680F #0F6853
square
#270F68 #680F23 #50680F #0F6853
split-complementary
#270F68 #68530F #23680F
monochromatic
#0A041B #130733 #270F68 #3B179D #4F1ED3

Accessibility & contrast

On white

15.51
#270F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#270F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270F68
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F68#FFFFFF#000000##FFFFFF
##270F681.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00266A
Deuteranopia (green-blind)
#002166
Tritanopia (blue-blind)
#012A3C
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #270f68;
/* rgb */ color: rgb(39, 15, 104);
/* oklch */ color: oklch(27.7% 0.140 285.0);
Tailwind
colors: {
  custom: {
    50: '#6b5294',
    500: '#270f68',
    950: '#000000',
  },
}
SCSS
$custom: #270f68;
$custom-light: #6b5294;
$custom-dark: #000000;
JSON
{
  "hex": "#270f68",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 104
  },
  "hsl": {
    "h": 256.18,
    "s": 74.79,
    "l": 23.333
  },
  "oklch": {
    "l": 0.27715,
    "c": 0.14012,
    "h": 285
  },
  "luminance": 0.01772
}

Semantic roles & 50–950 ramp

primary
#270F68
secondary
#83A132
accent
#F136BF
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #270F68

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

Preview Lab → · Contrast checker → · Palette generator →

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