#4340AF#4340AF

#4340AF is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.4% C 0.171 H 278.0°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#4340AF
RGBrgb(67, 64, 175)
HSLhsl(242, 46%, 47%)
HSVhsv(242, 63%, 69%)
CMYKcmyk(61.7%, 63.4%, 0%, 31.4%)
CIE-LABlab(33.89, 34.99, -58.95)
CIE-LCHlch(33.89, 68.55, 300.69°)
OKLaboklab(44.45% 0.0239 -0.1697)
OKLCHoklch(44.45% 0.171 278)
XYZxyz(11.8835, 7.9543, 41.4582)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4340AF #ACAF40
analogous
#4074AF #4340AF #7B40AF
triadic
#4340AF #AF4340 #40AF43
tetradic
#4340AF #AF4074 #ACAF40 #40AF7B
square
#4340AF #AF4074 #ACAF40 #40AF7B
split-complementary
#4340AF #AF7B40 #74AF40
monochromatic
#211F55 #323082 #4340AF #6865C7 #9492D7

Accessibility & contrast

On white

8.10
#4340AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#4340AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4340AF
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4340AF#FFFFFF#000000##FFFFFF
##4340AF1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#004BAD
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4340af;
/* rgb */ color: rgb(67, 64, 175);
/* oklch */ color: oklch(44.4% 0.171 278.0);
Tailwind
colors: {
  custom: {
    50: '#8375c8',
    500: '#4340af',
    950: '#000000',
  },
}
SCSS
$custom: #4340af;
$custom-light: #8375c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4340af",
  "rgb": {
    "r": 67,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 241.622,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44448,
    "c": 0.17138,
    "h": 278
  },
  "luminance": 0.07955
}

Semantic roles & 50–950 ramp

primary
#4340AF
secondary
#C1C388
accent
#D652D3
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4340AF

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

Preview Lab → · Contrast checker → · Palette generator →

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