#26228B#26228B

#26228B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.166 H 274.7°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#26228B
RGBrgb(38, 34, 139)
HSLhsl(242, 61%, 34%)
HSVhsv(242, 76%, 55%)
CMYKcmyk(72.7%, 75.5%, 0%, 45.5%)
CIE-LABlab(21.65, 37.13, -57.16)
CIE-LCHlch(21.65, 68.16, 303.00°)
OKLaboklab(34.05% 0.0137 -0.1653)
OKLCHoklch(34.05% 0.166 274.7)
XYZxyz(6.0300, 3.4196, 24.7634)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#26228B #878B22
analogous
#22538B #26228B #5B228B
triadic
#26228B #8B2622 #228B26
tetradic
#26228B #8B2253 #878B22 #228B5B
square
#26228B #8B2253 #878B22 #228B5B
split-complementary
#26228B #8B5B22 #538B22
monochromatic
#0B0A29 #19165A #26228B #332EBC #5853D5

Accessibility & contrast

On white

12.47
#26228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#26228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #26228B
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##26228B#FFFFFF#000000##FFFFFF
##26228B1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #26228b;
/* rgb */ color: rgb(38, 34, 139);
/* oklch */ color: oklch(34.0% 0.166 274.7);
Tailwind
colors: {
  custom: {
    50: '#715fae',
    500: '#26228b',
    950: '#000000',
  },
}
SCSS
$custom: #26228b;
$custom-light: #715fae;
$custom-dark: #000000;
JSON
{
  "hex": "#26228b",
  "rgb": {
    "r": 38,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 242.286,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34047,
    "c": 0.16586,
    "h": 274.7
  },
  "luminance": 0.0342
}

Semantic roles & 50–950 ramp

primary
#26228B
secondary
#B5B850
accent
#E444DE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #26228B

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

Preview Lab → · Contrast checker → · Palette generator →

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