#26228C#26228C

#26228C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.167 H 274.6°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#26228C
RGBrgb(38, 34, 140)
HSLhsl(242, 61%, 34%)
HSVhsv(242, 76%, 55%)
CMYKcmyk(72.9%, 75.7%, 0%, 45.1%)
CIE-LABlab(21.76, 37.47, -57.61)
CIE-LCHlch(21.76, 68.72, 303.04°)
OKLaboklab(34.16% 0.0135 -0.1666)
OKLCHoklch(34.16% 0.167 274.6)
XYZxyz(6.1034, 3.4490, 25.1499)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#26228C #888C22
analogous
#22538C #26228C #5B228C
triadic
#26228C #8C2622 #228C26
tetradic
#26228C #8C2253 #888C22 #228C5B
square
#26228C #8C2253 #888C22 #228C5B
split-complementary
#26228C #8C5B22 #538C22
monochromatic
#0B0A2A #19165B #26228C #332EBD #5853D5

Accessibility & contrast

On white

12.43
#26228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#26228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #26228C
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##26228C#FFFFFF#000000##FFFFFF
##26228C1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #26228c;
/* rgb */ color: rgb(38, 34, 140);
/* oklch */ color: oklch(34.2% 0.167 274.6);
Tailwind
colors: {
  custom: {
    50: '#715faf',
    500: '#26228c',
    950: '#000000',
  },
}
SCSS
$custom: #26228c;
$custom-light: #715faf;
$custom-dark: #000000;
JSON
{
  "hex": "#26228c",
  "rgb": {
    "r": 38,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 242.264,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34156,
    "c": 0.16714,
    "h": 274.6
  },
  "luminance": 0.0345
}

Semantic roles & 50–950 ramp

primary
#26228C
secondary
#B5B951
accent
#E444DE
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #26228C

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

Preview Lab → · Contrast checker → · Palette generator →

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