#3B40C2#3B40C2

#3B40C2 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.6% C 0.198 H 273.7°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#3B40C2
RGBrgb(59, 64, 194)
HSLhsl(238, 53%, 50%)
HSVhsv(238, 70%, 76%)
CMYKcmyk(69.6%, 67%, 0%, 23.9%)
CIE-LABlab(34.98, 40.29, -68.39)
CIE-LCHlch(34.98, 79.37, 300.50°)
OKLaboklab(45.61% 0.0126 -0.1976)
OKLCHoklch(45.61% 0.198 273.7)
XYZxyz(13.3714, 8.4904, 51.9626)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B40C2 #C2BD3B
analogous
#3B83C2 #3B40C2 #7A3BC2
triadic
#3B40C2 #C23B40 #40C23B
tetradic
#3B40C2 #C23B83 #C2BD3B #3BC27A
square
#3B40C2 #C23B83 #C2BD3B #3BC27A
split-complementary
#3B40C2 #C27A3B #83C23B
monochromatic
#1E2164 #2D3193 #3B40C2 #696DD1 #989AE0

Accessibility & contrast

On white

7.78
#3B40C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#3B40C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B40C2
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B40C2#FFFFFF#000000##FFFFFF
##3B40C21.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#004CC0
Tritanopia (blue-blind)
#00637B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3b40c2;
/* rgb */ color: rgb(59, 64, 194);
/* oklch */ color: oklch(45.6% 0.198 273.7);
Tailwind
colors: {
  custom: {
    50: '#8375d6',
    500: '#3b40c2',
    950: '#000000',
  },
}
SCSS
$custom: #3b40c2;
$custom-light: #8375d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3b40c2",
  "rgb": {
    "r": 59,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 237.778,
    "s": 53.36,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45611,
    "c": 0.19799,
    "h": 273.7
  },
  "luminance": 0.08492
}

Semantic roles & 50–950 ramp

primary
#3B40C2
secondary
#CBC98E
accent
#D74BDD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3B40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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