#2C42CF#2C42CF

#2C42CF is a mid, highly saturated blue. Relative luminance 0.089; OKLCH L 46.4% C 0.216 H 268.7°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#2C42CF
RGBrgb(44, 66, 207)
HSLhsl(232, 65%, 49%)
HSVhsv(232, 79%, 81%)
CMYKcmyk(78.7%, 68.1%, 0%, 18.8%)
CIE-LABlab(35.86, 42.06, -74.55)
CIE-LCHlch(35.86, 85.60, 299.43°)
OKLaboklab(46.4% -0.005 -0.2159)
OKLCHoklch(46.4% 0.216 268.7)
XYZxyz(14.2455, 8.9353, 59.9933)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C42CF #CFB92C
analogous
#2C94CF #2C42CF #682CCF
triadic
#2C42CF #CF2C42 #42CF2C
tetradic
#2C42CF #CF2C94 #CFB92C #2CCF68
square
#2C42CF #CF2C94 #CFB92C #2CCF68
split-complementary
#2C42CF #CF682C #94CF2C
monochromatic
#17226A #21329D #2C42CF #5C6DDC #8E9AE7

Accessibility & contrast

On white

7.53
#2C42CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2C42CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C42CF
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C42CF#FFFFFF#000000##FFFFFF
##2C42CF1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD3
Deuteranopia (green-blind)
#004DCC
Tritanopia (blue-blind)
#006983
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2c42cf;
/* rgb */ color: rgb(44, 66, 207);
/* oklch */ color: oklch(46.4% 0.216 268.7);
Tailwind
colors: {
  custom: {
    50: '#8177df',
    500: '#2c42cf',
    950: '#000000',
  },
}
SCSS
$custom: #2c42cf;
$custom-light: #8177df;
$custom-dark: #000000;
JSON
{
  "hex": "#2c42cf",
  "rgb": {
    "r": 44,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 231.902,
    "s": 64.94,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46401,
    "c": 0.21597,
    "h": 268.7
  },
  "luminance": 0.08937
}

Semantic roles & 50–950 ramp

primary
#2C42CF
secondary
#D1C785
accent
#D140E8
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #2C42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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