#26228F#26228F

#26228F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.171 H 274.3°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#26228F
RGBrgb(38, 34, 143)
HSLhsl(242, 62%, 35%)
HSVhsv(242, 76%, 56%)
CMYKcmyk(73.4%, 76.2%, 0%, 43.9%)
CIE-LABlab(22.08, 38.49, -58.94)
CIE-LCHlch(22.08, 70.40, 303.15°)
OKLaboklab(34.48% 0.0128 -0.1705)
OKLCHoklch(34.48% 0.171 274.3)
XYZxyz(6.3276, 3.5387, 26.3308)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#26228F #8B8F22
analogous
#22548F #26228F #5D228F
triadic
#26228F #8F2622 #228F26
tetradic
#26228F #8F2254 #8B8F22 #228F5D
square
#26228F #8F2254 #8B8F22 #228F5D
split-complementary
#26228F #8F5D22 #548F22
monochromatic
#0C0A2C #19165E #26228F #332EC0 #5A55D7

Accessibility & contrast

On white

12.30
#26228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#26228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #26228F
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##26228F#FFFFFF#000000##FFFFFF
##26228F1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #26228f;
/* rgb */ color: rgb(38, 34, 143);
/* oklch */ color: oklch(34.5% 0.171 274.3);
Tailwind
colors: {
  custom: {
    50: '#725fb1',
    500: '#26228f',
    950: '#000000',
  },
}
SCSS
$custom: #26228f;
$custom-light: #725fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#26228f",
  "rgb": {
    "r": 38,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 242.202,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34482,
    "c": 0.17096,
    "h": 274.3
  },
  "luminance": 0.03539
}

Semantic roles & 50–950 ramp

primary
#26228F
secondary
#B7BA52
accent
#E543DF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #26228F

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

Preview Lab → · Contrast checker → · Palette generator →

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