#270948#270948

#270948 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.107 H 299.4°. Best body text is #FFFFFF at 17.23:1 contrast (WCAG AA passes).

Color values

HEX#270948
RGBrgb(39, 9, 72)
HSLhsl(269, 78%, 16%)
HSVhsv(269, 88%, 28%)
CMYKcmyk(45.8%, 87.5%, 0%, 71.8%)
CIE-LABlab(9.76, 29.37, -32.66)
CIE-LCHlch(9.76, 43.92, 311.96°)
OKLaboklab(23.54% 0.0526 -0.0934)
OKLCHoklch(23.54% 0.107 299.4)
XYZxyz(2.1038, 1.0946, 6.2301)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270948 #2A4809
analogous
#090B48 #270948 #460948
triadic
#270948 #482709 #094827
tetradic
#270948 #48090B #2A4809 #094846
square
#270948 #48090B #2A4809 #094846
split-complementary
#270948 #484609 #0B4809
monochromatic
#0F031B #0F031B #270948 #44107E #6217B5

Accessibility & contrast

On white

17.23
#270948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#270948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270948
17.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270948#FFFFFF#000000##FFFFFF
##2709481.0017.231.2217.23
#FFFFFF17.231.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4A
Deuteranopia (green-blind)
#001A47
Tritanopia (blue-blind)
#1F1A28
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #270948;
/* rgb */ color: rgb(39, 9, 72);
/* oklch */ color: oklch(23.5% 0.107 299.4);
Tailwind
colors: {
  custom: {
    50: '#654c7c',
    500: '#270948',
    950: '#000000',
  },
}
SCSS
$custom: #270948;
$custom-light: #654c7c;
$custom-dark: #000000;
JSON
{
  "hex": "#270948",
  "rgb": {
    "r": 39,
    "g": 9,
    "b": 72
  },
  "hsl": {
    "h": 268.571,
    "s": 77.778,
    "l": 15.882
  },
  "oklch": {
    "l": 0.23543,
    "c": 0.10721,
    "h": 299.4
  },
  "luminance": 0.01095
}

Semantic roles & 50–950 ramp

primary
#270948
secondary
#598527
accent
#F43498
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #270948

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

Preview Lab → · Contrast checker → · Palette generator →

#270948 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva