#3B42CF#3B42CF

#3B42CF is a mid, highly saturated blue. Relative luminance 0.093; OKLCH L 47.1% C 0.212 H 272.7°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#3B42CF
RGBrgb(59, 66, 207)
HSLhsl(237, 61%, 52%)
HSVhsv(237, 71%, 81%)
CMYKcmyk(71.5%, 68.1%, 0%, 18.8%)
CIE-LABlab(36.61, 43.49, -73.29)
CIE-LCHlch(36.61, 85.22, 300.69°)
OKLaboklab(47.15% 0.01 -0.2119)
OKLCHoklch(47.15% 0.212 272.7)
XYZxyz(15.0105, 9.3297, 60.0291)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B42CF #CFC83B
analogous
#3B8CCF #3B42CF #7E3BCF
triadic
#3B42CF #CF3B42 #42CF3B
tetradic
#3B42CF #CF3B8C #CFC83B #3BCF7E
square
#3B42CF #CF3B8C #CFC83B #3BCF7E
split-complementary
#3B42CF #CF7E3B #8CCF3B
monochromatic
#1C2073 #282EA5 #3B42CF #6C71DB #9DA1E7

Accessibility & contrast

On white

7.33
#3B42CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B42CF
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B42CF#FFFFFF#000000##FFFFFF
##3B42CF1.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.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: #3b42cf;
/* rgb */ color: rgb(59, 66, 207);
/* oklch */ color: oklch(47.1% 0.212 272.7);
Tailwind
colors: {
  custom: {
    50: '#8677df',
    500: '#3b42cf',
    950: '#000000',
  },
}
SCSS
$custom: #3b42cf;
$custom-light: #8677df;
$custom-dark: #000000;
JSON
{
  "hex": "#3b42cf",
  "rgb": {
    "r": 59,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 237.162,
    "s": 60.656,
    "l": 52.157
  },
  "oklch": {
    "l": 0.4715,
    "c": 0.21213,
    "h": 272.7
  },
  "luminance": 0.09331
}

Semantic roles & 50–950 ramp

primary
#3B42CF
secondary
#D3D093
accent
#DC44E4
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #3B42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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