#3340A7#3340A7

#3340A7 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.165 H 271.9°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#3340A7
RGBrgb(51, 64, 167)
HSLhsl(233, 53%, 43%)
HSVhsv(233, 69%, 65%)
CMYKcmyk(69.5%, 61.7%, 0%, 34.5%)
CIE-LABlab(32.17, 29.76, -57.02)
CIE-LCHlch(32.17, 64.32, 297.57°)
OKLaboklab(42.7% 0.0055 -0.1645)
OKLCHoklch(42.7% 0.165 271.9)
XYZxyz(10.1713, 7.1596, 37.3976)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340A7 #A79A33
analogous
#337AA7 #3340A7 #6033A7
triadic
#3340A7 #A73340 #40A733
tetradic
#3340A7 #A7337A #A79A33 #33A760
square
#3340A7 #A7337A #A79A33 #33A760
split-complementary
#3340A7 #A76033 #7AA733
monochromatic
#161C49 #252E78 #3340A7 #4E5CC9 #7D87D7

Accessibility & contrast

On white

8.63
#3340A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#3340A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3340A7
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3340A7#FFFFFF#000000##FFFFFF
##3340A71.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#0046A5
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3340a7;
/* rgb */ color: rgb(51, 64, 167);
/* oklch */ color: oklch(42.7% 0.165 271.9);
Tailwind
colors: {
  custom: {
    50: '#7a74c2',
    500: '#3340a7',
    950: '#000000',
  },
}
SCSS
$custom: #3340a7;
$custom-light: #7a74c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3340a7",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 233.276,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42701,
    "c": 0.16454,
    "h": 271.9
  },
  "luminance": 0.07161
}

Semantic roles & 50–950 ramp

primary
#3340A7
secondary
#C0B876
accent
#CC4BDD
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3340A7

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

Preview Lab → · Contrast checker → · Palette generator →

#3340A7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva