#27228F#27228F

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

Color values

HEX#27228F
RGBrgb(39, 34, 143)
HSLhsl(243, 62%, 35%)
HSVhsv(243, 76%, 56%)
CMYKcmyk(72.7%, 76.2%, 0%, 43.9%)
CIE-LABlab(22.15, 38.59, -58.83)
CIE-LCHlch(22.15, 70.36, 303.27°)
OKLaboklab(34.55% 0.0141 -0.1701)
OKLCHoklch(34.55% 0.171 274.8)
XYZxyz(6.3650, 3.5579, 26.3326)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27228F #8A8F22
analogous
#22548F #27228F #5D228F
triadic
#27228F #8F2722 #228F27
tetradic
#27228F #8F2254 #8A8F22 #228F5D
square
#27228F #8F2254 #8A8F22 #228F5D
split-complementary
#27228F #8F5D22 #548F22
monochromatic
#0C0A2C #1A165E #27228F #342EC0 #5B55D7

Accessibility & contrast

On white

12.27
#27228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27228F
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27228F#FFFFFF#000000##FFFFFF
##27228F1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.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: #27228f;
/* rgb */ color: rgb(39, 34, 143);
/* oklch */ color: oklch(34.5% 0.171 274.8);
Tailwind
colors: {
  custom: {
    50: '#725fb1',
    500: '#27228f',
    950: '#000000',
  },
}
SCSS
$custom: #27228f;
$custom-light: #725fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#27228f",
  "rgb": {
    "r": 39,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 242.752,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34549,
    "c": 0.1707,
    "h": 274.8
  },
  "luminance": 0.03559
}

Semantic roles & 50–950 ramp

primary
#27228F
secondary
#B6BA52
accent
#E543DD
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #27228F

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

Preview Lab → · Contrast checker → · Palette generator →

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