#3340A1#3340A1

#3340A1 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.2% C 0.156 H 272.0°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#3340A1
RGBrgb(51, 64, 161)
HSLhsl(233, 52%, 42%)
HSVhsv(233, 68%, 63%)
CMYKcmyk(68.3%, 60.2%, 0%, 36.9%)
CIE-LABlab(31.68, 27.59, -54.21)
CIE-LCHlch(31.68, 60.82, 296.97°)
OKLaboklab(42.18% 0.0056 -0.1562)
OKLCHoklch(42.18% 0.156 272)
XYZxyz(9.6295, 6.9429, 34.5439)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340A1 #A19433
analogous
#3377A1 #3340A1 #5D33A1
triadic
#3340A1 #A13340 #40A133
tetradic
#3340A1 #A13377 #A19433 #33A15D
square
#3340A1 #A13377 #A19433 #33A15D
split-complementary
#3340A1 #A15D33 #77A133
monochromatic
#161B44 #242E73 #3340A1 #4B5AC6 #7A84D5

Accessibility & contrast

On white

8.79
#3340A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#3340A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3340A1
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3340A1#FFFFFF#000000##FFFFFF
##3340A11.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#00469F
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3340a1;
/* rgb */ color: rgb(51, 64, 161);
/* oklch */ color: oklch(42.2% 0.156 272.0);
Tailwind
colors: {
  custom: {
    50: '#7974be',
    500: '#3340a1',
    950: '#000000',
  },
}
SCSS
$custom: #3340a1;
$custom-light: #7974be;
$custom-dark: #000000;
JSON
{
  "hex": "#3340a1",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 232.909,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42184,
    "c": 0.1563,
    "h": 272
  },
  "luminance": 0.06944
}

Semantic roles & 50–950 ramp

primary
#3340A1
secondary
#BDB472
accent
#CA4CDB
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3340A1

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

Preview Lab → · Contrast checker → · Palette generator →

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