#4340C4#4340C4

#4340C4 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.3% C 0.199 H 276.3°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#4340C4
RGBrgb(67, 64, 196)
HSLhsl(241, 53%, 51%)
HSVhsv(241, 67%, 77%)
CMYKcmyk(65.8%, 67.3%, 0%, 23.1%)
CIE-LABlab(35.68, 41.97, -68.39)
CIE-LCHlch(35.68, 80.24, 301.53°)
OKLaboklab(46.31% 0.0219 -0.1974)
OKLCHoklch(46.31% 0.199 276.3)
XYZxyz(14.1087, 8.8444, 53.1775)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4340C4 #C1C440
analogous
#407FC4 #4340C4 #8540C4
triadic
#4340C4 #C44340 #40C443
tetradic
#4340C4 #C4407F #C1C440 #40C485
square
#4340C4 #C4407F #C1C440 #40C485
split-complementary
#4340C4 #C48540 #7FC440
monochromatic
#222069 #312F98 #4340C4 #716FD2 #9F9EE1

Accessibility & contrast

On white

7.58
#4340C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#4340C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4340C4
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4340C4#FFFFFF#000000##FFFFFF
##4340C41.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#004EC1
Tritanopia (blue-blind)
#00637D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4340c4;
/* rgb */ color: rgb(67, 64, 196);
/* oklch */ color: oklch(46.3% 0.199 276.3);
Tailwind
colors: {
  custom: {
    50: '#8776d7',
    500: '#4340c4',
    950: '#000000',
  },
}
SCSS
$custom: #4340c4;
$custom-light: #8776d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4340c4",
  "rgb": {
    "r": 67,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 241.364,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.46308,
    "c": 0.19861,
    "h": 276.3
  },
  "luminance": 0.08846
}

Semantic roles & 50–950 ramp

primary
#4340C4
secondary
#CCCD93
accent
#DC4CD9
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4340C4

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

Preview Lab → · Contrast checker → · Palette generator →

#4340C4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva