#2C27B3#2C27B3

#2C27B3 is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.5% C 0.209 H 272.9°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#2C27B3
RGBrgb(44, 39, 179)
HSLhsl(242, 64%, 43%)
HSVhsv(242, 78%, 70%)
CMYKcmyk(75.4%, 78.2%, 0%, 29.8%)
CIE-LABlab(27.41, 48.13, -72.04)
CIE-LCHlch(27.41, 86.64, 303.75°)
OKLaboklab(39.51% 0.0105 -0.2085)
OKLCHoklch(39.51% 0.209 272.9)
XYZxyz(9.8982, 5.2401, 43.1289)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C27B3 #AEB327
analogous
#2768B3 #2C27B3 #7227B3
triadic
#2C27B3 #B32C27 #27B32C
tetradic
#2C27B3 #B32768 #AEB327 #27B372
square
#2C27B3 #B32768 #AEB327 #27B372
split-complementary
#2C27B3 #B37227 #68B327
monochromatic
#13114E #201C81 #2C27B3 #4741D6 #7874E1

Accessibility & contrast

On white

10.25
#2C27B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2C27B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C27B3
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C27B3#FFFFFF#000000##FFFFFF
##2C27B31.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B7
Deuteranopia (green-blind)
#003AB1
Tritanopia (blue-blind)
#00526C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2c27b3;
/* rgb */ color: rgb(44, 39, 179);
/* oklch */ color: oklch(39.5% 0.209 272.9);
Tailwind
colors: {
  custom: {
    50: '#7c64cb',
    500: '#2c27b3',
    950: '#000000',
  },
}
SCSS
$custom: #2c27b3;
$custom-light: #7c64cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2c27b3",
  "rgb": {
    "r": 44,
    "g": 39,
    "b": 179
  },
  "hsl": {
    "h": 242.143,
    "s": 64.22,
    "l": 42.745
  },
  "oklch": {
    "l": 0.39508,
    "c": 0.20873,
    "h": 272.9
  },
  "luminance": 0.05241
}

Semantic roles & 50–950 ramp

primary
#2C27B3
secondary
#C5C86E
accent
#E741E1
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2C27B3

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

Preview Lab → · Contrast checker → · Palette generator →

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