#334486#334486

#334486 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.9% C 0.112 H 270.0°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#334486
RGBrgb(51, 68, 134)
HSLhsl(228, 45%, 36%)
HSVhsv(228, 62%, 53%)
CMYKcmyk(61.9%, 49.3%, 0%, 47.5%)
CIE-LABlab(30.78, 15.03, -39.16)
CIE-LCHlch(30.78, 41.94, 291.00°)
OKLaboklab(40.88% 0 -0.1119)
OKLCHoklch(40.88% 0.112 270)
XYZxyz(7.7340, 6.5587, 23.4080)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334486 #867533
analogous
#336E86 #334486 #4C3386
triadic
#334486 #863344 #448633
tetradic
#334486 #86336E #867533 #33864C
square
#334486 #86336E #867533 #33864C
split-complementary
#334486 #864C33 #6E8633
monochromatic
#11172D #222E5A #334486 #445AB2 #6C7FC7

Accessibility & contrast

On white

9.08
#334486 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#334486 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334486
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334486#FFFFFF#000000##FFFFFF
##3344861.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234C88
Deuteranopia (green-blind)
#154585
Tritanopia (blue-blind)
#00535E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #334486;
/* rgb */ color: rgb(51, 68, 134);
/* oklch */ color: oklch(40.9% 0.112 270.0);
Tailwind
colors: {
  custom: {
    50: '#7377aa',
    500: '#334486',
    950: '#000000',
  },
}
SCSS
$custom: #334486;
$custom-light: #7377aa;
$custom-dark: #000000;
JSON
{
  "hex": "#334486",
  "rgb": {
    "r": 51,
    "g": 68,
    "b": 134
  },
  "hsl": {
    "h": 227.711,
    "s": 44.865,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40881,
    "c": 0.11189,
    "h": 270
  },
  "luminance": 0.06559
}

Semantic roles & 50–950 ramp

primary
#334486
secondary
#AFA066
accent
#BA53D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #334486

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

Preview Lab → · Contrast checker → · Palette generator →

#334486 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva