#26228E#26228E

#26228E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.170 H 274.4°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#26228E
RGBrgb(38, 34, 142)
HSLhsl(242, 61%, 35%)
HSVhsv(242, 76%, 56%)
CMYKcmyk(73.2%, 76.1%, 0%, 44.3%)
CIE-LABlab(21.98, 38.15, -58.50)
CIE-LCHlch(21.98, 69.84, 303.11°)
OKLaboklab(34.37% 0.013 -0.1692)
OKLCHoklch(34.37% 0.17 274.4)
XYZxyz(6.2522, 3.5085, 25.9337)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#26228E #8A8E22
analogous
#22548E #26228E #5C228E
triadic
#26228E #8E2622 #228E26
tetradic
#26228E #8E2254 #8A8E22 #228E5C
square
#26228E #8E2254 #8A8E22 #228E5C
split-complementary
#26228E #8E5C22 #548E22
monochromatic
#0C0A2B #19165D #26228E #332EBF #5954D6

Accessibility & contrast

On white

12.34
#26228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#26228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #26228E
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##26228E#FFFFFF#000000##FFFFFF
##26228E1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #26228e;
/* rgb */ color: rgb(38, 34, 142);
/* oklch */ color: oklch(34.4% 0.170 274.4);
Tailwind
colors: {
  custom: {
    50: '#715fb0',
    500: '#26228e',
    950: '#000000',
  },
}
SCSS
$custom: #26228e;
$custom-light: #715fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#26228e",
  "rgb": {
    "r": 38,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 242.222,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34373,
    "c": 0.16969,
    "h": 274.4
  },
  "luminance": 0.03509
}

Semantic roles & 50–950 ramp

primary
#26228E
secondary
#B6BA52
accent
#E443DF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #26228E

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

Preview Lab → · Contrast checker → · Palette generator →

#26228E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva