#26157C#26157C

#26157C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.160 H 278.8°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#26157C
RGBrgb(38, 21, 124)
HSLhsl(250, 71%, 28%)
HSVhsv(250, 83%, 49%)
CMYKcmyk(69.4%, 83.1%, 0%, 51.4%)
CIE-LABlab(17.48, 39.29, -54.59)
CIE-LCHlch(17.48, 67.26, 305.74°)
OKLaboklab(30.62% 0.0244 -0.1577)
OKLCHoklch(30.62% 0.16 278.8)
XYZxyz(4.7044, 2.4032, 19.2808)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#26157C #6B7C15
analogous
#15377C #26157C #59157C
triadic
#26157C #7C2615 #157C26
tetradic
#26157C #7C1537 #6B7C15 #157C59
square
#26157C #7C1537 #6B7C15 #157C59
split-complementary
#26157C #7C5915 #377C15
monochromatic
#08041A #160C48 #26157C #361EB0 #4C30DC

Accessibility & contrast

On white

14.18
#26157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #26157C
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##26157C#FFFFFF#000000##FFFFFF
##26157C1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00277A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #26157c;
/* rgb */ color: rgb(38, 21, 124);
/* oklch */ color: oklch(30.6% 0.160 278.8);
Tailwind
colors: {
  custom: {
    50: '#6e56a3',
    500: '#26157c',
    950: '#000000',
  },
}
SCSS
$custom: #26157c;
$custom-light: #6e56a3;
$custom-dark: #000000;
JSON
{
  "hex": "#26157c",
  "rgb": {
    "r": 38,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 249.903,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30617,
    "c": 0.15955,
    "h": 278.8
  },
  "luminance": 0.02404
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #26157C

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

Preview Lab → · Contrast checker → · Palette generator →

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