#4340BF#4340BF

#4340BF is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.9% C 0.192 H 276.7°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#4340BF
RGBrgb(67, 64, 191)
HSLhsl(241, 50%, 50%)
HSVhsv(241, 66%, 75%)
CMYKcmyk(64.9%, 66.5%, 0%, 25.1%)
CIE-LABlab(35.24, 40.32, -66.19)
CIE-LCHlch(35.24, 77.50, 301.35°)
OKLaboklab(45.86% 0.0224 -0.1909)
OKLCHoklch(45.86% 0.192 276.7)
XYZxyz(13.5490, 8.6205, 50.2300)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4340BF #BCBF40
analogous
#407DBF #4340BF #8240BF
triadic
#4340BF #BF4340 #40BF43
tetradic
#4340BF #BF407D #BCBF40 #40BF82
square
#4340BF #BF407D #BCBF40 #40BF82
split-complementary
#4340BF #BF8240 #7DBF40
monochromatic
#232163 #333191 #4340BF #706ECE #9D9CDE

Accessibility & contrast

On white

7.71
#4340BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#4340BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4340BF
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4340BF#FFFFFF#000000##FFFFFF
##4340BF1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C3
Deuteranopia (green-blind)
#004DBD
Tritanopia (blue-blind)
#00617A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4340bf;
/* rgb */ color: rgb(67, 64, 191);
/* oklch */ color: oklch(45.9% 0.192 276.7);
Tailwind
colors: {
  custom: {
    50: '#8675d3',
    500: '#4340bf',
    950: '#000000',
  },
}
SCSS
$custom: #4340bf;
$custom-light: #8675d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4340bf",
  "rgb": {
    "r": 67,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 241.417,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.45855,
    "c": 0.19224,
    "h": 276.7
  },
  "luminance": 0.08622
}

Semantic roles & 50–950 ramp

primary
#4340BF
secondary
#C9CA91
accent
#D94ED6
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #4340BF

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

Preview Lab → · Contrast checker → · Palette generator →

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