#26227F#26227F

#26227F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.150 H 276.1°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#26227F
RGBrgb(38, 34, 127)
HSLhsl(243, 58%, 32%)
HSVhsv(243, 73%, 50%)
CMYKcmyk(70.1%, 73.2%, 0%, 50.2%)
CIE-LABlab(20.39, 32.96, -51.69)
CIE-LCHlch(20.39, 61.30, 302.52°)
OKLaboklab(32.77% 0.0159 -0.1493)
OKLCHoklch(32.77% 0.15 276.1)
XYZxyz(5.2009, 3.0880, 20.3965)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#26227F #7B7F22
analogous
#224D7F #26227F #55227F
triadic
#26227F #7F2622 #227F26
tetradic
#26227F #7F224D #7B7F22 #227F55
square
#26227F #7F224D #7B7F22 #227F55
split-complementary
#26227F #7F5522 #4D7F22
monochromatic
#09081E #18154F #26227F #342FAF #524CCF

Accessibility & contrast

On white

12.98
#26227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#26227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #26227F
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##26227F#FFFFFF#000000##FFFFFF
##26227F1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #26227f;
/* rgb */ color: rgb(38, 34, 127);
/* oklch */ color: oklch(32.8% 0.150 276.1);
Tailwind
colors: {
  custom: {
    50: '#6e5ea5',
    500: '#26227f',
    950: '#000000',
  },
}
SCSS
$custom: #26227f;
$custom-light: #6e5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#26227f",
  "rgb": {
    "r": 38,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 242.581,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32772,
    "c": 0.15017,
    "h": 276.1
  },
  "luminance": 0.03088
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #26227F

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

Preview Lab → · Contrast checker → · Palette generator →

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