#270F45#270F45

#270F45 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.096 H 299.4°. Best body text is #FFFFFF at 16.93:1 contrast (WCAG AA passes).

Color values

HEX#270F45
RGBrgb(39, 15, 69)
HSLhsl(267, 64%, 16%)
HSVhsv(267, 78%, 27%)
CMYKcmyk(43.5%, 78.3%, 0%, 72.9%)
CIE-LABlab(10.58, 25.33, -29.22)
CIE-LCHlch(10.58, 38.67, 310.92°)
OKLaboklab(24.03% 0.047 -0.0834)
OKLCHoklch(24.03% 0.096 299.4)
XYZxyz(2.0814, 1.2026, 5.7515)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F45 #2D450F
analogous
#0F1245 #270F45 #420F45
triadic
#270F45 #45270F #0F4527
tetradic
#270F45 #450F12 #2D450F #0F4542
square
#270F45 #450F12 #2D450F #0F4542
split-complementary
#270F45 #45420F #12450F
monochromatic
#0E0519 #0E0519 #270F45 #431A77 #6025AA

Accessibility & contrast

On white

16.93
#270F45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#270F45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270F45
16.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F45#FFFFFF#000000##FFFFFF
##270F451.0016.931.2416.93
#FFFFFF16.931.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D47
Deuteranopia (green-blind)
#001C44
Tritanopia (blue-blind)
#201C28
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #270f45;
/* rgb */ color: rgb(39, 15, 69);
/* oklch */ color: oklch(24.0% 0.096 299.4);
Tailwind
colors: {
  custom: {
    50: '#654f79',
    500: '#270f45',
    950: '#000000',
  },
}
SCSS
$custom: #270f45;
$custom-light: #654f79;
$custom-dark: #000000;
JSON
{
  "hex": "#270f45",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 69
  },
  "hsl": {
    "h": 266.667,
    "s": 64.286,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24032,
    "c": 0.09568,
    "h": 299.4
  },
  "luminance": 0.01203
}

Semantic roles & 50–950 ramp

primary
#270F45
secondary
#5C7F30
accent
#E7419D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #270F45

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

Preview Lab → · Contrast checker → · Palette generator →

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