#2C27A3#2C27A3

#2C27A3 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.8% C 0.189 H 274.2°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#2C27A3
RGBrgb(44, 39, 163)
HSLhsl(242, 61%, 40%)
HSVhsv(242, 76%, 64%)
CMYKcmyk(73%, 76.1%, 0%, 36.1%)
CIE-LABlab(25.65, 42.93, -65.31)
CIE-LCHlch(25.65, 78.16, 303.32°)
OKLaboklab(37.76% 0.0139 -0.1889)
OKLCHoklch(37.76% 0.189 274.2)
XYZxyz(8.3729, 4.6300, 35.0957)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C27A3 #9EA327
analogous
#2760A3 #2C27A3 #6A27A3
triadic
#2C27A3 #A32C27 #27A32C
tetradic
#2C27A3 #A32760 #9EA327 #27A36A
square
#2C27A3 #A32760 #9EA327 #27A36A
split-complementary
#2C27A3 #A36A27 #60A327
monochromatic
#110F40 #1F1B72 #2C27A3 #3E38CF #6E69DB

Accessibility & contrast

On white

10.90
#2C27A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2C27A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C27A3
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C27A3#FFFFFF#000000##FFFFFF
##2C27A31.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A7
Deuteranopia (green-blind)
#0037A1
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2c27a3;
/* rgb */ color: rgb(44, 39, 163);
/* oklch */ color: oklch(37.8% 0.189 274.2);
Tailwind
colors: {
  custom: {
    50: '#7863c0',
    500: '#2c27a3',
    950: '#000000',
  },
}
SCSS
$custom: #2c27a3;
$custom-light: #7863c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c27a3",
  "rgb": {
    "r": 44,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 242.419,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37756,
    "c": 0.18942,
    "h": 274.2
  },
  "luminance": 0.04631
}

Semantic roles & 50–950 ramp

primary
#2C27A3
secondary
#BEC164
accent
#E443DE
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2C27A3

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

Preview Lab → · Contrast checker → · Palette generator →

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