#3340AB#3340AB

#3340AB is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.170 H 271.8°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#3340AB
RGBrgb(51, 64, 171)
HSLhsl(234, 54%, 44%)
HSVhsv(234, 70%, 67%)
CMYKcmyk(70.2%, 62.6%, 0%, 32.9%)
CIE-LABlab(32.50, 31.21, -58.87)
CIE-LCHlch(32.50, 66.63, 297.93°)
OKLaboklab(43.05% 0.0054 -0.1699)
OKLCHoklch(43.05% 0.17 271.8)
XYZxyz(10.5468, 7.3099, 39.3753)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340AB #AB9E33
analogous
#337CAB #3340AB #6233AB
triadic
#3340AB #AB3340 #40AB33
tetradic
#3340AB #AB337C #AB9E33 #33AB62
square
#3340AB #AB337C #AB9E33 #33AB62
split-complementary
#3340AB #AB6233 #7CAB33
monochromatic
#171D4D #252E7C #3340AB #505ECB #7F89D9

Accessibility & contrast

On white

8.53
#3340AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#3340AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3340AB
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3340AB#FFFFFF#000000##FFFFFF
##3340AB1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3340ab;
/* rgb */ color: rgb(51, 64, 171);
/* oklch */ color: oklch(43.1% 0.170 271.8);
Tailwind
colors: {
  custom: {
    50: '#7b74c5',
    500: '#3340ab',
    950: '#000000',
  },
}
SCSS
$custom: #3340ab;
$custom-light: #7b74c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3340ab",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 233.5,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43052,
    "c": 0.16997,
    "h": 271.8
  },
  "luminance": 0.07311
}

Semantic roles & 50–950 ramp

primary
#3340AB
secondary
#C2BA78
accent
#CD4ADD
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3340AB

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

Preview Lab → · Contrast checker → · Palette generator →

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