#3C42CF#3C42CF

#3C42CF is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.2% C 0.212 H 273.0°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#3C42CF
RGBrgb(60, 66, 207)
HSLhsl(238, 60%, 52%)
HSVhsv(238, 71%, 81%)
CMYKcmyk(71%, 68.1%, 0%, 18.8%)
CIE-LABlab(36.67, 43.60, -73.19)
CIE-LCHlch(36.67, 85.19, 300.78°)
OKLaboklab(47.21% 0.0111 -0.2116)
OKLCHoklch(47.21% 0.212 273)
XYZxyz(15.0704, 9.3606, 60.0319)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C42CF #CFC93C
analogous
#3C8CCF #3C42CF #803CCF
triadic
#3C42CF #CF3C42 #42CF3C
tetradic
#3C42CF #CF3C8C #CFC93C #3CCF80
square
#3C42CF #CF3C8C #CFC93C #3CCF80
split-complementary
#3C42CF #CF803C #8CCF3C
monochromatic
#1D2074 #292EA5 #3C42CF #6D72DB #9EA1E7

Accessibility & contrast

On white

7.31
#3C42CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#3C42CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C42CF
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C42CF#FFFFFF#000000##FFFFFF
##3C42CF1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD3
Deuteranopia (green-blind)
#004FCC
Tritanopia (blue-blind)
#006883
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #3c42cf;
/* rgb */ color: rgb(60, 66, 207);
/* oklch */ color: oklch(47.2% 0.212 273.0);
Tailwind
colors: {
  custom: {
    50: '#8677df',
    500: '#3c42cf',
    950: '#000000',
  },
}
SCSS
$custom: #3c42cf;
$custom-light: #8677df;
$custom-dark: #000000;
JSON
{
  "hex": "#3c42cf",
  "rgb": {
    "r": 60,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 237.551,
    "s": 60.494,
    "l": 52.353
  },
  "oklch": {
    "l": 0.47207,
    "c": 0.21189,
    "h": 273
  },
  "luminance": 0.09362
}

Semantic roles & 50–950 ramp

primary
#3C42CF
secondary
#D3D193
accent
#DD44E4
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #3C42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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