#26227E#26227E

#26227E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.149 H 276.2°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#26227E
RGBrgb(38, 34, 126)
HSLhsl(243, 58%, 31%)
HSVhsv(243, 73%, 49%)
CMYKcmyk(69.8%, 73%, 0%, 50.6%)
CIE-LABlab(20.29, 32.61, -51.22)
CIE-LCHlch(20.29, 60.72, 302.48°)
OKLaboklab(32.67% 0.0161 -0.148)
OKLCHoklch(32.67% 0.149 276.2)
XYZxyz(5.1360, 3.0620, 20.0550)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#26227E #7A7E22
analogous
#224C7E #26227E #54227E
triadic
#26227E #7E2622 #227E26
tetradic
#26227E #7E224C #7A7E22 #227E54
square
#26227E #7E224C #7A7E22 #227E54
split-complementary
#26227E #7E5422 #4C7E22
monochromatic
#09081E #17154E #26227E #352FAE #514CCF

Accessibility & contrast

On white

13.02
#26227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#26227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #26227E
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##26227E#FFFFFF#000000##FFFFFF
##26227E1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #26227e;
/* rgb */ color: rgb(38, 34, 126);
/* oklch */ color: oklch(32.7% 0.149 276.2);
Tailwind
colors: {
  custom: {
    50: '#6e5ea4',
    500: '#26227e',
    950: '#000000',
  },
}
SCSS
$custom: #26227e;
$custom-light: #6e5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#26227e",
  "rgb": {
    "r": 38,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 242.609,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32668,
    "c": 0.14884,
    "h": 276.2
  },
  "luminance": 0.03062
}

Semantic roles & 50–950 ramp

primary
#26227E
secondary
#ACB14B
accent
#E147DA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #26227E

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

Preview Lab → · Contrast checker → · Palette generator →

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