#4340CB#4340CB

#4340CB is a mid, highly saturated blue. Relative luminance 0.092; OKLCH L 47.0% C 0.207 H 275.8°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#4340CB
RGBrgb(67, 64, 203)
HSLhsl(241, 57%, 52%)
HSVhsv(241, 68%, 80%)
CMYKcmyk(67%, 68.5%, 0%, 20.4%)
CIE-LABlab(36.31, 44.27, -71.44)
CIE-LCHlch(36.31, 84.04, 301.78°)
OKLaboklab(46.95% 0.021 -0.2063)
OKLCHoklch(46.95% 0.207 275.8)
XYZxyz(14.9241, 9.1706, 57.4719)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4340CB #C8CB40
analogous
#4083CB #4340CB #8940CB
triadic
#4340CB #CB4340 #40CB43
tetradic
#4340CB #CB4083 #C8CB40 #40CB89
square
#4340CB #CB4083 #C8CB40 #40CB89
split-complementary
#4340CB #CB8940 #83CB40
monochromatic
#211F72 #2F2CA2 #4340CB #7270D8 #A2A0E5

Accessibility & contrast

On white

7.41
#4340CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#4340CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4340CB
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4340CB#FFFFFF#000000##FFFFFF
##4340CB1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCF
Deuteranopia (green-blind)
#004FC8
Tritanopia (blue-blind)
#006580
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4340cb;
/* rgb */ color: rgb(67, 64, 203);
/* oklch */ color: oklch(47.0% 0.207 275.8);
Tailwind
colors: {
  custom: {
    50: '#8876dc',
    500: '#4340cb',
    950: '#000000',
  },
}
SCSS
$custom: #4340cb;
$custom-light: #8876dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4340cb",
  "rgb": {
    "r": 67,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 241.295,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.46953,
    "c": 0.20738,
    "h": 275.8
  },
  "luminance": 0.09172
}

Semantic roles & 50–950 ramp

primary
#4340CB
secondary
#D0D295
accent
#E047DD
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4340CB

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

Preview Lab → · Contrast checker → · Palette generator →

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