#3340A5#3340A5

#3340A5 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.162 H 272.0°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#3340A5
RGBrgb(51, 64, 165)
HSLhsl(233, 53%, 42%)
HSVhsv(233, 69%, 65%)
CMYKcmyk(69.1%, 61.2%, 0%, 35.3%)
CIE-LABlab(32.00, 29.04, -56.08)
CIE-LCHlch(32.00, 63.16, 297.37°)
OKLaboklab(42.53% 0.0055 -0.1617)
OKLCHoklch(42.53% 0.162 272)
XYZxyz(9.9879, 7.0863, 36.4314)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340A5 #A59833
analogous
#3379A5 #3340A5 #5F33A5
triadic
#3340A5 #A53340 #40A533
tetradic
#3340A5 #A53379 #A59833 #33A55F
square
#3340A5 #A53379 #A59833 #33A55F
split-complementary
#3340A5 #A55F33 #79A533
monochromatic
#161C48 #252E76 #3340A5 #4D5BC8 #7C86D6

Accessibility & contrast

On white

8.69
#3340A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#3340A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3340A5
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3340A5#FFFFFF#000000##FFFFFF
##3340A51.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3340a5;
/* rgb */ color: rgb(51, 64, 165);
/* oklch */ color: oklch(42.5% 0.162 272.0);
Tailwind
colors: {
  custom: {
    50: '#7974c1',
    500: '#3340a5',
    950: '#000000',
  },
}
SCSS
$custom: #3340a5;
$custom-light: #7974c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3340a5",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 233.158,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42528,
    "c": 0.16181,
    "h": 272
  },
  "luminance": 0.07087
}

Semantic roles & 50–950 ramp

primary
#3340A5
secondary
#BFB775
accent
#CC4CDC
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3340A5

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

Preview Lab → · Contrast checker → · Palette generator →

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