#26127F#26127F

#26127F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.166 H 278.6°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#26127F
RGBrgb(38, 18, 127)
HSLhsl(251, 75%, 28%)
HSVhsv(251, 86%, 50%)
CMYKcmyk(70.1%, 85.8%, 0%, 50.2%)
CIE-LABlab(17.35, 41.64, -56.71)
CIE-LCHlch(17.35, 70.36, 306.29°)
OKLaboklab(30.64% 0.0248 -0.1638)
OKLCHoklch(30.64% 0.166 278.6)
XYZxyz(4.8452, 2.3766, 20.2779)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#26127F #6B7F12
analogous
#12347F #26127F #5C127F
triadic
#26127F #7F2612 #127F26
tetradic
#26127F #7F1234 #6B7F12 #127F5C
square
#26127F #7F1234 #6B7F12 #127F5C
split-complementary
#26127F #7F5C12 #347F12
monochromatic
#08041B #160A49 #26127F #361AB5 #4C2BE1

Accessibility & contrast

On white

14.23
#26127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#26127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #26127F
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##26127F#FFFFFF#000000##FFFFFF
##26127F1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #26127f;
/* rgb */ color: rgb(38, 18, 127);
/* oklch */ color: oklch(30.6% 0.166 278.6);
Tailwind
colors: {
  custom: {
    50: '#6f55a5',
    500: '#26127f',
    950: '#000000',
  },
}
SCSS
$custom: #26127f;
$custom-light: #6f55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#26127f",
  "rgb": {
    "r": 38,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 251.009,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30636,
    "c": 0.16565,
    "h": 278.6
  },
  "luminance": 0.02377
}

Semantic roles & 50–950 ramp

primary
#26127F
secondary
#9EB538
accent
#F236CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #26127F

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

Preview Lab → · Contrast checker → · Palette generator →

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