#4340C8#4340C8

#4340C8 is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 46.7% C 0.204 H 276.0°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#4340C8
RGBrgb(67, 64, 200)
HSLhsl(241, 55%, 52%)
HSVhsv(241, 68%, 78%)
CMYKcmyk(66.5%, 68%, 0%, 21.6%)
CIE-LABlab(36.04, 43.28, -70.14)
CIE-LCHlch(36.04, 82.42, 301.68°)
OKLaboklab(46.68% 0.0214 -0.2025)
OKLCHoklch(46.68% 0.204 276)
XYZxyz(14.5700, 9.0289, 55.6073)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4340C8 #C5C840
analogous
#4081C8 #4340C8 #8740C8
triadic
#4340C8 #C84340 #40C843
tetradic
#4340C8 #C84081 #C5C840 #40C887
square
#4340C8 #C84081 #C5C840 #40C887
split-complementary
#4340C8 #C88740 #81C840
monochromatic
#21206E #302D9D #4340C8 #7270D6 #A19FE3

Accessibility & contrast

On white

7.48
#4340C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#4340C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4340C8
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4340C8#FFFFFF#000000##FFFFFF
##4340C81.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4340c8;
/* rgb */ color: rgb(67, 64, 200);
/* oklch */ color: oklch(46.7% 0.204 276.0);
Tailwind
colors: {
  custom: {
    50: '#8876da',
    500: '#4340c8',
    950: '#000000',
  },
}
SCSS
$custom: #4340c8;
$custom-light: #8876da;
$custom-dark: #000000;
JSON
{
  "hex": "#4340c8",
  "rgb": {
    "r": 67,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 241.324,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.46675,
    "c": 0.20363,
    "h": 276
  },
  "luminance": 0.0903
}

Semantic roles & 50–950 ramp

primary
#4340C8
secondary
#CED094
accent
#DF49DB
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4340C8

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

Preview Lab → · Contrast checker → · Palette generator →

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