#2C27AF#2C27AF

#2C27AF is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 39.1% C 0.204 H 273.2°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#2C27AF
RGBrgb(44, 39, 175)
HSLhsl(242, 64%, 42%)
HSVhsv(242, 78%, 69%)
CMYKcmyk(74.9%, 77.7%, 0%, 31.4%)
CIE-LABlab(26.96, 46.85, -70.38)
CIE-LCHlch(26.96, 84.55, 303.65°)
OKLaboklab(39.07% 0.0114 -0.2037)
OKLCHoklch(39.07% 0.204 273.2)
XYZxyz(9.4995, 5.0807, 41.0292)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C27AF #AAAF27
analogous
#2766AF #2C27AF #7027AF
triadic
#2C27AF #AF2C27 #27AF2C
tetradic
#2C27AF #AF2766 #AAAF27 #27AF70
square
#2C27AF #AF2766 #AAAF27 #27AF70
split-complementary
#2C27AF #AF7027 #66AF27
monochromatic
#13114B #1F1C7D #2C27AF #443FD4 #7571DF

Accessibility & contrast

On white

10.41
#2C27AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2C27AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C27AF
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C27AF#FFFFFF#000000##FFFFFF
##2C27AF1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B3
Deuteranopia (green-blind)
#0039AD
Tritanopia (blue-blind)
#00506A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2c27af;
/* rgb */ color: rgb(44, 39, 175);
/* oklch */ color: oklch(39.1% 0.204 273.2);
Tailwind
colors: {
  custom: {
    50: '#7b64c8',
    500: '#2c27af',
    950: '#000000',
  },
}
SCSS
$custom: #2c27af;
$custom-light: #7b64c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c27af",
  "rgb": {
    "r": 44,
    "g": 39,
    "b": 175
  },
  "hsl": {
    "h": 242.206,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39065,
    "c": 0.20398,
    "h": 273.2
  },
  "luminance": 0.05082
}

Semantic roles & 50–950 ramp

primary
#2C27AF
secondary
#C3C66B
accent
#E741E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2C27AF

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

Preview Lab → · Contrast checker → · Palette generator →

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