#270A4C#270A4C

#270A4C is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.111 H 297.0°. Best body text is #FFFFFF at 17.02:1 contrast (WCAG AA passes).

Color values

HEX#270A4C
RGBrgb(39, 10, 76)
HSLhsl(266, 77%, 17%)
HSVhsv(266, 87%, 30%)
CMYKcmyk(48.7%, 86.8%, 0%, 70.2%)
CIE-LABlab(10.34, 30.04, -34.50)
CIE-LCHlch(10.34, 45.74, 311.05°)
OKLaboklab(24.07% 0.0503 -0.0988)
OKLCHoklch(24.07% 0.111 297)
XYZxyz(2.2494, 1.1702, 6.9434)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270A4C #2F4C0A
analogous
#0A0E4C #270A4C #480A4C
triadic
#270A4C #4C270A #0A4C27
tetradic
#270A4C #4C0A0E #2F4C0A #0A4C48
square
#270A4C #4C0A0E #2F4C0A #0A4C48
split-complementary
#270A4C #4C480A #0E4C0A
monochromatic
#0E041B #0E041B #270A4C #431182 #5F18B8

Accessibility & contrast

On white

17.02
#270A4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#270A4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270A4C
17.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270A4C#FFFFFF#000000##FFFFFF
##270A4C1.0017.021.2317.02
#FFFFFF17.021.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4E
Deuteranopia (green-blind)
#001B4B
Tritanopia (blue-blind)
#1D1C2B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #270a4c;
/* rgb */ color: rgb(39, 10, 76);
/* oklch */ color: oklch(24.1% 0.111 297.0);
Tailwind
colors: {
  custom: {
    50: '#664d7f',
    500: '#270a4c',
    950: '#000000',
  },
}
SCSS
$custom: #270a4c;
$custom-light: #664d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#270a4c",
  "rgb": {
    "r": 39,
    "g": 10,
    "b": 76
  },
  "hsl": {
    "h": 266.364,
    "s": 76.744,
    "l": 16.863
  },
  "oklch": {
    "l": 0.24074,
    "c": 0.11087,
    "h": 297
  },
  "luminance": 0.0117
}

Semantic roles & 50–950 ramp

primary
#270A4C
secondary
#5F8929
accent
#F3359F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06010A
muted
#7A777C

Preview Lab

Preview with #270A4C

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

Preview Lab → · Contrast checker → · Palette generator →

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