#2C42C2#2C42C2

#2C42C2 is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.2% C 0.200 H 268.8°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#2C42C2
RGBrgb(44, 66, 194)
HSLhsl(231, 63%, 47%)
HSVhsv(231, 77%, 76%)
CMYKcmyk(77.3%, 66%, 0%, 23.9%)
CIE-LABlab(34.65, 37.43, -68.97)
CIE-LCHlch(34.65, 78.47, 298.49°)
OKLaboklab(45.16% -0.004 -0.1996)
OKLCHoklch(45.16% 0.2 268.8)
XYZxyz(12.7212, 8.3255, 51.9650)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C42C2 #C2AC2C
analogous
#2C8DC2 #2C42C2 #612CC2
triadic
#2C42C2 #C22C42 #42C22C
tetradic
#2C42C2 #C22C8D #C2AC2C #2CC261
square
#2C42C2 #C22C8D #C2AC2C #2CC261
split-complementary
#2C42C2 #C2612C #8DC22C
monochromatic
#15205E #213190 #2C42C2 #5367D8 #8593E3

Accessibility & contrast

On white

7.88
#2C42C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2C42C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C42C2
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C42C2#FFFFFF#000000##FFFFFF
##2C42C21.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#004AC0
Tritanopia (blue-blind)
#00647C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2c42c2;
/* rgb */ color: rgb(44, 66, 194);
/* oklch */ color: oklch(45.2% 0.200 268.8);
Tailwind
colors: {
  custom: {
    50: '#7d76d6',
    500: '#2c42c2',
    950: '#000000',
  },
}
SCSS
$custom: #2c42c2;
$custom-light: #7d76d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c42c2",
  "rgb": {
    "r": 44,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 231.2,
    "s": 63.025,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45155,
    "c": 0.19964,
    "h": 268.8
  },
  "luminance": 0.08327
}

Semantic roles & 50–950 ramp

primary
#2C42C2
secondary
#CDC17D
accent
#CE42E6
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #2C42C2

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

Preview Lab → · Contrast checker → · Palette generator →

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