#270A40#270A40

#270A40 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.9% C 0.096 H 304.1°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#270A40
RGBrgb(39, 10, 64)
HSLhsl(272, 73%, 15%)
HSVhsv(272, 84%, 25%)
CMYKcmyk(39.1%, 84.4%, 0%, 74.9%)
CIE-LABlab(9.15, 26.60, -28.01)
CIE-LCHlch(9.15, 38.63, 313.52°)
OKLaboklab(22.87% 0.0539 -0.0798)
OKLCHoklch(22.87% 0.096 304.1)
XYZxyz(1.8704, 1.0186, 4.9476)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270A40 #23400A
analogous
#0C0A40 #270A40 #400A3E
triadic
#270A40 #40270A #0A4027
tetradic
#270A40 #400C0A #23400A #0A3E40
square
#270A40 #400C0A #23400A #0A3E40
split-complementary
#270A40 #3E400A #0A400C
monochromatic
#10041A #10041A #270A40 #471275 #681BAA

Accessibility & contrast

On white

17.44
#270A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#270A40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270A40
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270A40#FFFFFF#000000##FFFFFF
##270A401.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#001A3F
Tritanopia (blue-blind)
#221724
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #270a40;
/* rgb */ color: rgb(39, 10, 64);
/* oklch */ color: oklch(22.9% 0.096 304.1);
Tailwind
colors: {
  custom: {
    50: '#644c75',
    500: '#270a40',
    950: '#000000',
  },
}
SCSS
$custom: #270a40;
$custom-light: #644c75;
$custom-dark: #000000;
JSON
{
  "hex": "#270a40",
  "rgb": {
    "r": 39,
    "g": 10,
    "b": 64
  },
  "hsl": {
    "h": 272.222,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.22872,
    "c": 0.09629,
    "h": 304.1
  },
  "luminance": 0.01019
}

Semantic roles & 50–950 ramp

primary
#270A40
secondary
#507D29
accent
#F0388D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #270A40

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

Preview Lab → · Contrast checker → · Palette generator →

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