#26127B#26127B

#26127B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.161 H 279.4°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#26127B
RGBrgb(38, 18, 123)
HSLhsl(251, 74%, 28%)
HSVhsv(251, 85%, 48%)
CMYKcmyk(69.1%, 85.4%, 0%, 51.8%)
CIE-LABlab(16.87, 40.41, -54.96)
CIE-LCHlch(16.87, 68.22, 306.32°)
OKLaboklab(30.16% 0.0262 -0.1587)
OKLCHoklch(30.16% 0.161 279.4)
XYZxyz(4.5896, 2.2744, 18.9322)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#26127B #677B12
analogous
#12327B #26127B #5B127B
triadic
#26127B #7B2612 #127B26
tetradic
#26127B #7B1232 #677B12 #127B5B
square
#26127B #7B1232 #677B12 #127B5B
split-complementary
#26127B #7B5B12 #327B12
monochromatic
#08041B #160A46 #26127B #361AB0 #4B28E0

Accessibility & contrast

On white

14.43
#26127B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#26127B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #26127B
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##26127B#FFFFFF#000000##FFFFFF
##26127B1.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7E
Deuteranopia (green-blind)
#002579
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #26127b;
/* rgb */ color: rgb(38, 18, 123);
/* oklch */ color: oklch(30.2% 0.161 279.4);
Tailwind
colors: {
  custom: {
    50: '#6e54a2',
    500: '#26127b',
    950: '#000000',
  },
}
SCSS
$custom: #26127b;
$custom-light: #6e54a2;
$custom-dark: #000000;
JSON
{
  "hex": "#26127b",
  "rgb": {
    "r": 38,
    "g": 18,
    "b": 123
  },
  "hsl": {
    "h": 251.429,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30161,
    "c": 0.16085,
    "h": 279.4
  },
  "luminance": 0.02275
}

Semantic roles & 50–950 ramp

primary
#26127B
secondary
#9AB138
accent
#F137CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #26127B

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

Preview Lab → · Contrast checker → · Palette generator →

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