#26218B#26218B

#26218B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.167 H 274.9°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#26218B
RGBrgb(38, 33, 139)
HSLhsl(243, 62%, 34%)
HSVhsv(243, 76%, 55%)
CMYKcmyk(72.7%, 76.3%, 0%, 45.5%)
CIE-LABlab(21.44, 37.71, -57.51)
CIE-LCHlch(21.44, 68.77, 303.25°)
OKLaboklab(33.9% 0.0142 -0.1663)
OKLCHoklch(33.9% 0.167 274.9)
XYZxyz(6.0018, 3.3633, 24.7540)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#26218B #868B21
analogous
#21518B #26218B #5B218B
triadic
#26218B #8B2621 #218B26
tetradic
#26218B #8B2151 #868B21 #218B5B
square
#26218B #8B2151 #868B21 #218B5B
split-complementary
#26218B #8B5B21 #518B21
monochromatic
#0B0A28 #18155A #26218B #342DBC #5751D6

Accessibility & contrast

On white

12.55
#26218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#26218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #26218B
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##26218B#FFFFFF#000000##FFFFFF
##26218B1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #26218b;
/* rgb */ color: rgb(38, 33, 139);
/* oklch */ color: oklch(33.9% 0.167 274.9);
Tailwind
colors: {
  custom: {
    50: '#715eae',
    500: '#26218b',
    950: '#000000',
  },
}
SCSS
$custom: #26218b;
$custom-light: #715eae;
$custom-dark: #000000;
JSON
{
  "hex": "#26218b",
  "rgb": {
    "r": 38,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 242.83,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.339,
    "c": 0.16689,
    "h": 274.9
  },
  "luminance": 0.03364
}

Semantic roles & 50–950 ramp

primary
#26218B
secondary
#B4B94F
accent
#E543DD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #26218B

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

Preview Lab → · Contrast checker → · Palette generator →

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