#27123F#27123F

#27123F is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.083 H 302.0°. Best body text is #FFFFFF at 16.87:1 contrast (WCAG AA passes).

Color values

HEX#27123F
RGBrgb(39, 18, 63)
HSLhsl(268, 56%, 16%)
HSVhsv(268, 71%, 25%)
CMYKcmyk(38.1%, 71.4%, 0%, 75.3%)
CIE-LABlab(10.72, 21.69, -24.75)
CIE-LCHlch(10.72, 32.90, 311.23°)
OKLaboklab(23.97% 0.0438 -0.0702)
OKLCHoklch(23.97% 0.083 302)
XYZxyz(1.9500, 1.2228, 4.8350)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27123F #2A3F12
analogous
#12133F #27123F #3D123F
triadic
#27123F #3F2712 #123F27
tetradic
#27123F #3F1213 #2A3F12 #123F3D
square
#27123F #3F1213 #2A3F12 #123F3D
split-complementary
#27123F #3F3D12 #133F12
monochromatic
#0F0718 #0F0718 #27123F #44206F #622D9E

Accessibility & contrast

On white

16.87
#27123F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#27123F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27123F
16.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27123F#FFFFFF#000000##FFFFFF
##27123F1.0016.871.2416.87
#FFFFFF16.871.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D40
Deuteranopia (green-blind)
#041D3E
Tritanopia (blue-blind)
#221C26
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #27123f;
/* rgb */ color: rgb(39, 18, 63);
/* oklch */ color: oklch(24.0% 0.083 302.0);
Tailwind
colors: {
  custom: {
    50: '#635174',
    500: '#27123f',
    950: '#000000',
  },
}
SCSS
$custom: #27123f;
$custom-light: #635174;
$custom-dark: #000000;
JSON
{
  "hex": "#27123f",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 63
  },
  "hsl": {
    "h": 268,
    "s": 55.556,
    "l": 15.882
  },
  "oklch": {
    "l": 0.23974,
    "c": 0.08277,
    "h": 302
  },
  "luminance": 0.01223
}

Semantic roles & 50–950 ramp

primary
#27123F
secondary
#597835
accent
#DF4999
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050208
muted
#7A787B

Preview Lab

Preview with #27123F

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

Preview Lab → · Contrast checker → · Palette generator →

#27123F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva