#270A45#270A45

#270A45 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.4% C 0.102 H 300.9°. Best body text is #FFFFFF at 17.28:1 contrast (WCAG AA passes).

Color values

HEX#270A45
RGBrgb(39, 10, 69)
HSLhsl(269, 75%, 15%)
HSVhsv(269, 86%, 27%)
CMYKcmyk(43.5%, 85.5%, 0%, 72.9%)
CIE-LABlab(9.63, 28.02, -30.77)
CIE-LCHlch(9.63, 41.62, 312.33°)
OKLaboklab(23.36% 0.0525 -0.0879)
OKLCHoklch(23.36% 0.102 300.9)
XYZxyz(2.0192, 1.0781, 5.7308)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270A45 #28450A
analogous
#0A0A45 #270A45 #440A45
triadic
#270A45 #45270A #0A4527
tetradic
#270A45 #450A0A #28450A #0A4544
square
#270A45 #450A0A #28450A #0A4544
split-complementary
#270A45 #45440A #0A450A
monochromatic
#0F041B #0F041B #270A45 #45127A #6319B0

Accessibility & contrast

On white

17.28
#270A45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#270A45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270A45
17.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270A45#FFFFFF#000000##FFFFFF
##270A451.0017.281.2217.28
#FFFFFF17.281.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #270a45;
/* rgb */ color: rgb(39, 10, 69);
/* oklch */ color: oklch(23.4% 0.102 300.9);
Tailwind
colors: {
  custom: {
    50: '#654d79',
    500: '#270a45',
    950: '#000000',
  },
}
SCSS
$custom: #270a45;
$custom-light: #654d79;
$custom-dark: #000000;
JSON
{
  "hex": "#270a45",
  "rgb": {
    "r": 39,
    "g": 10,
    "b": 69
  },
  "hsl": {
    "h": 269.492,
    "s": 74.684,
    "l": 15.49
  },
  "oklch": {
    "l": 0.23359,
    "c": 0.10239,
    "h": 300.9
  },
  "luminance": 0.01078
}

Semantic roles & 50–950 ramp

primary
#270A45
secondary
#568229
accent
#F13695
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #270A45

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

Preview Lab → · Contrast checker → · Palette generator →

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