#2C27A9#2C27A9

#2C27A9 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.4% C 0.197 H 273.7°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#2C27A9
RGBrgb(44, 39, 169)
HSLhsl(242, 63%, 41%)
HSVhsv(242, 77%, 66%)
CMYKcmyk(74%, 76.9%, 0%, 33.7%)
CIE-LABlab(26.30, 44.90, -67.87)
CIE-LCHlch(26.30, 81.38, 303.49°)
OKLaboklab(38.41% 0.0126 -0.1963)
OKLCHoklch(38.41% 0.197 273.7)
XYZxyz(8.9233, 4.8502, 37.9943)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C27A9 #A4A927
analogous
#2763A9 #2C27A9 #6D27A9
triadic
#2C27A9 #A92C27 #27A92C
tetradic
#2C27A9 #A92763 #A4A927 #27A96D
square
#2C27A9 #A92763 #A4A927 #27A96D
split-complementary
#2C27A9 #A96D27 #63A927
monochromatic
#121046 #1F1C77 #2C27A9 #413BD2 #716DDD

Accessibility & contrast

On white

10.66
#2C27A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2C27A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C27A9
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C27A9#FFFFFF#000000##FFFFFF
##2C27A91.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AD
Deuteranopia (green-blind)
#0038A7
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2c27a9;
/* rgb */ color: rgb(44, 39, 169);
/* oklch */ color: oklch(38.4% 0.197 273.7);
Tailwind
colors: {
  custom: {
    50: '#7a64c4',
    500: '#2c27a9',
    950: '#000000',
  },
}
SCSS
$custom: #2c27a9;
$custom-light: #7a64c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c27a9",
  "rgb": {
    "r": 44,
    "g": 39,
    "b": 169
  },
  "hsl": {
    "h": 242.308,
    "s": 62.5,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38407,
    "c": 0.19676,
    "h": 273.7
  },
  "luminance": 0.04851
}

Semantic roles & 50–950 ramp

primary
#2C27A9
secondary
#C0C468
accent
#E642DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2C27A9

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

Preview Lab → · Contrast checker → · Palette generator →

#2C27A9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva