#270E45#270E45

#270E45 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.097 H 299.7°. Best body text is #FFFFFF at 17.00:1 contrast (WCAG AA passes).

Color values

HEX#270E45
RGBrgb(39, 14, 69)
HSLhsl(267, 66%, 16%)
HSVhsv(267, 80%, 27%)
CMYKcmyk(43.5%, 79.7%, 0%, 72.9%)
CIE-LABlab(10.37, 25.90, -29.55)
CIE-LCHlch(10.37, 39.30, 311.23°)
OKLaboklab(23.89% 0.0482 -0.0843)
OKLCHoklch(23.89% 0.097 299.7)
XYZxyz(2.0676, 1.1751, 5.7469)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270E45 #2C450E
analogous
#0E1145 #270E45 #430E45
triadic
#270E45 #45270E #0E4527
tetradic
#270E45 #450E11 #2C450E #0E4543
square
#270E45 #450E11 #2C450E #0E4543
split-complementary
#270E45 #45430E #11450E
monochromatic
#0E0519 #0E0519 #270E45 #441878 #6123AB

Accessibility & contrast

On white

17.00
#270E45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270E45
17.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270E45#FFFFFF#000000##FFFFFF
##270E451.0017.001.2317.00
#FFFFFF17.001.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C47
Deuteranopia (green-blind)
#001C44
Tritanopia (blue-blind)
#201B28
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #270e45;
/* rgb */ color: rgb(39, 14, 69);
/* oklch */ color: oklch(23.9% 0.097 299.7);
Tailwind
colors: {
  custom: {
    50: '#654f79',
    500: '#270e45',
    950: '#000000',
  },
}
SCSS
$custom: #270e45;
$custom-light: #654f79;
$custom-dark: #000000;
JSON
{
  "hex": "#270e45",
  "rgb": {
    "r": 39,
    "g": 14,
    "b": 69
  },
  "hsl": {
    "h": 267.273,
    "s": 66.265,
    "l": 16.275
  },
  "oklch": {
    "l": 0.23886,
    "c": 0.09712,
    "h": 299.7
  },
  "luminance": 0.01175
}

Semantic roles & 50–950 ramp

primary
#270E45
secondary
#5B802F
accent
#E93F9C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #270E45

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

Preview Lab → · Contrast checker → · Palette generator →

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