#4340E2#4340E2

#4340E2 is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.1% C 0.235 H 274.3°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#4340E2
RGBrgb(67, 64, 226)
HSLhsl(241, 74%, 57%)
HSVhsv(241, 72%, 89%)
CMYKcmyk(70.4%, 71.7%, 0%, 11.4%)
CIE-LABlab(38.46, 51.69, -81.14)
CIE-LCHlch(38.46, 96.21, 302.50°)
OKLaboklab(49.15% 0.0175 -0.2346)
OKLCHoklch(49.15% 0.235 274.3)
XYZxyz(17.8710, 10.3493, 72.9926)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4340E2 #DFE240
analogous
#408EE2 #4340E2 #9440E2
triadic
#4340E2 #E24340 #40E243
tetradic
#4340E2 #E2408E #DFE240 #40E294
square
#4340E2 #E2408E #DFE240 #40E294
split-complementary
#4340E2 #E29440 #8EE240
monochromatic
#181692 #211EC7 #4340E2 #7775EA #ACAAF2

Accessibility & contrast

On white

6.84
#4340E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#4340E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4340E2
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4340E2#FFFFFF#000000##FFFFFF
##4340E21.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E7
Deuteranopia (green-blind)
#0053DF
Tritanopia (blue-blind)
#006E8D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4340e2;
/* rgb */ color: rgb(67, 64, 226);
/* oklch */ color: oklch(49.1% 0.235 274.3);
Tailwind
colors: {
  custom: {
    50: '#8d77ec',
    500: '#4340e2',
    950: '#000000',
  },
}
SCSS
$custom: #4340e2;
$custom-light: #8d77ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4340e2",
  "rgb": {
    "r": 67,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 241.111,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.49145,
    "c": 0.23529,
    "h": 274.3
  },
  "luminance": 0.10351
}

Semantic roles & 50–950 ramp

primary
#4340E2
secondary
#DFE09E
accent
#F038ED
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4340E2

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

Preview Lab → · Contrast checker → · Palette generator →

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