#3334A4#3334A4

#3334A4 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.3% C 0.175 H 274.8°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#3334A4
RGBrgb(51, 52, 164)
HSLhsl(239, 53%, 42%)
HSVhsv(239, 69%, 64%)
CMYKcmyk(68.9%, 68.3%, 0%, 35.7%)
CIE-LABlab(29.00, 36.35, -60.39)
CIE-LCHlch(29.00, 70.49, 301.05°)
OKLaboklab(40.31% 0.0147 -0.1744)
OKLCHoklch(40.31% 0.175 274.8)
XYZxyz(9.2919, 5.8393, 35.7522)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3334A4 #A4A333
analogous
#336DA4 #3334A4 #6B33A4
triadic
#3334A4 #A43334 #34A433
tetradic
#3334A4 #A4336D #A4A333 #33A46B
square
#3334A4 #A4336D #A4A333 #33A46B
split-complementary
#3334A4 #A46B33 #6DA433
monochromatic
#161647 #242575 #3334A4 #4D4EC8 #7B7CD6

Accessibility & contrast

On white

9.69
#3334A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#3334A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3334A4
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3334A4#FFFFFF#000000##FFFFFF
##3334A41.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA7
Deuteranopia (green-blind)
#003FA2
Tritanopia (blue-blind)
#005267
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3334a4;
/* rgb */ color: rgb(51, 52, 164);
/* oklch */ color: oklch(40.3% 0.175 274.8);
Tailwind
colors: {
  custom: {
    50: '#7a6cc0',
    500: '#3334a4',
    950: '#000000',
  },
}
SCSS
$custom: #3334a4;
$custom-light: #7a6cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#3334a4",
  "rgb": {
    "r": 51,
    "g": 52,
    "b": 164
  },
  "hsl": {
    "h": 239.469,
    "s": 52.558,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40305,
    "c": 0.17503,
    "h": 274.8
  },
  "luminance": 0.0584
}

Semantic roles & 50–950 ramp

primary
#3334A4
secondary
#BFBE74
accent
#DB4CDC
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #3334A4

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

Preview Lab → · Contrast checker → · Palette generator →

#3334A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva