#4340B2#4340B2

#4340B2 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.7% C 0.175 H 277.8°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#4340B2
RGBrgb(67, 64, 178)
HSLhsl(242, 47%, 47%)
HSVhsv(242, 64%, 70%)
CMYKcmyk(62.4%, 64%, 0%, 30.2%)
CIE-LABlab(34.14, 35.99, -60.33)
CIE-LCHlch(34.14, 70.24, 300.82°)
OKLaboklab(44.71% 0.0237 -0.1737)
OKLCHoklch(44.71% 0.175 277.8)
XYZxyz(12.1814, 8.0735, 43.0273)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4340B2 #AFB240
analogous
#4076B2 #4340B2 #7C40B2
triadic
#4340B2 #B24340 #40B243
tetradic
#4340B2 #B24076 #AFB240 #40B27C
square
#4340B2 #B24076 #AFB240 #40B27C
split-complementary
#4340B2 #B27C40 #76B240
monochromatic
#212058 #323085 #4340B2 #6967C8 #9694D8

Accessibility & contrast

On white

8.03
#4340B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#4340B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4340B2
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4340B2#FFFFFF#000000##FFFFFF
##4340B21.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4340b2;
/* rgb */ color: rgb(67, 64, 178);
/* oklch */ color: oklch(44.7% 0.175 277.8);
Tailwind
colors: {
  custom: {
    50: '#8375ca',
    500: '#4340b2',
    950: '#000000',
  },
}
SCSS
$custom: #4340b2;
$custom-light: #8375ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4340b2",
  "rgb": {
    "r": 67,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 241.579,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44707,
    "c": 0.17535,
    "h": 277.8
  },
  "luminance": 0.08074
}

Semantic roles & 50–950 ramp

primary
#4340B2
secondary
#C2C48A
accent
#D751D3
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4340B2

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

Preview Lab → · Contrast checker → · Palette generator →

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