#270F48#270F48

#270F48 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.3% C 0.100 H 297.7°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#270F48
RGBrgb(39, 15, 72)
HSLhsl(265, 66%, 17%)
HSVhsv(265, 79%, 28%)
CMYKcmyk(45.8%, 79.2%, 0%, 71.8%)
CIE-LABlab(10.86, 26.24, -30.87)
CIE-LCHlch(10.86, 40.51, 310.37°)
OKLaboklab(24.32% 0.0463 -0.0882)
OKLCHoklch(24.32% 0.1 297.7)
XYZxyz(2.1769, 1.2408, 6.2544)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F48 #30480F
analogous
#0F1448 #270F48 #440F48
triadic
#270F48 #48270F #0F4827
tetradic
#270F48 #480F14 #30480F #0F4844
square
#270F48 #480F14 #30480F #0F4844
split-complementary
#270F48 #48440F #14480F
monochromatic
#0E0519 #0E0519 #270F48 #421A7B #5E24AD

Accessibility & contrast

On white

16.82
#270F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#270F48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270F48
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F48#FFFFFF#000000##FFFFFF
##270F481.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4A
Deuteranopia (green-blind)
#001D47
Tritanopia (blue-blind)
#1F1D2A
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #270f48;
/* rgb */ color: rgb(39, 15, 72);
/* oklch */ color: oklch(24.3% 0.100 297.7);
Tailwind
colors: {
  custom: {
    50: '#654f7b',
    500: '#270f48',
    950: '#000000',
  },
}
SCSS
$custom: #270f48;
$custom-light: #654f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#270f48",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 72
  },
  "hsl": {
    "h": 265.263,
    "s": 65.517,
    "l": 17.059
  },
  "oklch": {
    "l": 0.24317,
    "c": 0.09962,
    "h": 297.7
  },
  "luminance": 0.01241
}

Semantic roles & 50–950 ramp

primary
#270F48
secondary
#608230
accent
#E83FA1
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #270F48

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

Preview Lab → · Contrast checker → · Palette generator →

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