#26157B#26157B

#26157B is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.158 H 279.0°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#26157B
RGBrgb(38, 21, 123)
HSLhsl(250, 71%, 28%)
HSVhsv(250, 83%, 48%)
CMYKcmyk(69.1%, 82.9%, 0%, 51.8%)
CIE-LABlab(17.36, 38.97, -54.15)
CIE-LCHlch(17.36, 66.72, 305.74°)
OKLaboklab(30.5% 0.0247 -0.1564)
OKLCHoklch(30.5% 0.158 279)
XYZxyz(4.6415, 2.3781, 18.9495)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#26157B #6A7B15
analogous
#15377B #26157B #59157B
triadic
#26157B #7B2615 #157B26
tetradic
#26157B #7B1537 #6A7B15 #157B59
square
#26157B #7B1537 #6A7B15 #157B59
split-complementary
#26157B #7B5915 #377B15
monochromatic
#08041A #160C47 #26157B #361EAF #4C2FDB

Accessibility & contrast

On white

14.23
#26157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#26157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #26157B
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##26157B#FFFFFF#000000##FFFFFF
##26157B1.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)
#002E7E
Deuteranopia (green-blind)
#002779
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #26157b;
/* rgb */ color: rgb(38, 21, 123);
/* oklch */ color: oklch(30.5% 0.158 279.0);
Tailwind
colors: {
  custom: {
    50: '#6e56a2',
    500: '#26157b',
    950: '#000000',
  },
}
SCSS
$custom: #26157b;
$custom-light: #6e56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#26157b",
  "rgb": {
    "r": 38,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 250,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30501,
    "c": 0.15832,
    "h": 279
  },
  "luminance": 0.02378
}

Semantic roles & 50–950 ramp

primary
#26157B
secondary
#9DB03B
accent
#EE3AD0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #26157B

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

Preview Lab → · Contrast checker → · Palette generator →

#26157B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva