#3B42C8#3B42C8

#3B42C8 is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 46.5% C 0.203 H 273.0°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#3B42C8
RGBrgb(59, 66, 200)
HSLhsl(237, 56%, 51%)
HSVhsv(237, 71%, 78%)
CMYKcmyk(70.5%, 67%, 0%, 21.6%)
CIE-LABlab(35.97, 41.12, -70.27)
CIE-LCHlch(35.97, 81.41, 300.33°)
OKLaboklab(46.49% 0.0107 -0.2031)
OKLCHoklch(46.49% 0.203 273)
XYZxyz(14.1737, 8.9950, 55.6216)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B42C8 #C8C13B
analogous
#3B88C8 #3B42C8 #7A3BC8
triadic
#3B42C8 #C83B42 #42C83B
tetradic
#3B42C8 #C83B88 #C8C13B #3BC87A
square
#3B42C8 #C83B88 #C8C13B #3BC87A
split-complementary
#3B42C8 #C87A3B #88C83B
monochromatic
#1E226B #2B319A #3B42C8 #6B70D5 #9B9EE3

Accessibility & contrast

On white

7.50
#3B42C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#3B42C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B42C8
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B42C8#FFFFFF#000000##FFFFFF
##3B42C81.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCC
Deuteranopia (green-blind)
#004EC5
Tritanopia (blue-blind)
#00667F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3b42c8;
/* rgb */ color: rgb(59, 66, 200);
/* oklch */ color: oklch(46.5% 0.203 273.0);
Tailwind
colors: {
  custom: {
    50: '#8477da',
    500: '#3b42c8',
    950: '#000000',
  },
}
SCSS
$custom: #3b42c8;
$custom-light: #8477da;
$custom-dark: #000000;
JSON
{
  "hex": "#3b42c8",
  "rgb": {
    "r": 59,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 237.021,
    "s": 56.175,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46494,
    "c": 0.20336,
    "h": 273
  },
  "luminance": 0.08996
}

Semantic roles & 50–950 ramp

primary
#3B42C8
secondary
#CFCC90
accent
#D848DF
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3B42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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