#27229C#27229C

#27229C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.187 H 273.5°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#27229C
RGBrgb(39, 34, 156)
HSLhsl(242, 64%, 37%)
HSVhsv(242, 78%, 61%)
CMYKcmyk(75%, 78.2%, 0%, 38.8%)
CIE-LABlab(23.59, 42.93, -64.47)
CIE-LCHlch(23.59, 77.46, 303.66°)
OKLaboklab(35.99% 0.0113 -0.1865)
OKLCHoklch(35.99% 0.187 273.5)
XYZxyz(7.4075, 3.9749, 31.8229)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27229C #979C22
analogous
#225A9C #27229C #64229C
triadic
#27229C #9C2722 #229C27
tetradic
#27229C #9C225A #979C22 #229C64
square
#27229C #9C225A #979C22 #229C64
split-complementary
#27229C #9C6422 #5A9C22
monochromatic
#0E0C38 #1A176A #27229C #342DCE #625DDC

Accessibility & contrast

On white

11.70
#27229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#27229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27229C
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27229C#FFFFFF#000000##FFFFFF
##27229C1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00329A
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #27229c;
/* rgb */ color: rgb(39, 34, 156);
/* oklch */ color: oklch(36.0% 0.187 273.5);
Tailwind
colors: {
  custom: {
    50: '#7560ba',
    500: '#27229c',
    950: '#000000',
  },
}
SCSS
$custom: #27229c;
$custom-light: #7560ba;
$custom-dark: #000000;
JSON
{
  "hex": "#27229c",
  "rgb": {
    "r": 39,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 242.459,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.35987,
    "c": 0.18687,
    "h": 273.5
  },
  "luminance": 0.03976
}

Semantic roles & 50–950 ramp

primary
#27229C
secondary
#BCC05A
accent
#E741E0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #27229C

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

Preview Lab → · Contrast checker → · Palette generator →

#27229C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva