#334196#334196

#334196 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.5% C 0.139 H 271.8°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#334196
RGBrgb(51, 65, 150)
HSLhsl(232, 49%, 39%)
HSVhsv(232, 66%, 59%)
CMYKcmyk(66%, 56.7%, 0%, 41.2%)
CIE-LABlab(31.08, 22.91, -48.50)
CIE-LCHlch(31.08, 53.64, 295.28°)
OKLaboklab(41.47% 0.0045 -0.1394)
OKLCHoklch(41.47% 0.139 271.8)
XYZxyz(8.7587, 6.6856, 29.6771)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334196 #968833
analogous
#337396 #334196 #573396
triadic
#334196 #963341 #419633
tetradic
#334196 #963373 #968833 #339657
square
#334196 #963373 #968833 #339657
split-complementary
#334196 #965733 #739633
monochromatic
#14193B #232D68 #334196 #4657C0 #7481D0

Accessibility & contrast

On white

8.99
#334196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#334196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334196
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334196#FFFFFF#000000##FFFFFF
##3341961.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E99
Deuteranopia (green-blind)
#004594
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #334196;
/* rgb */ color: rgb(51, 65, 150);
/* oklch */ color: oklch(41.5% 0.139 271.8);
Tailwind
colors: {
  custom: {
    50: '#7675b5',
    500: '#334196',
    950: '#000000',
  },
}
SCSS
$custom: #334196;
$custom-light: #7675b5;
$custom-dark: #000000;
JSON
{
  "hex": "#334196",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 150
  },
  "hsl": {
    "h": 231.515,
    "s": 49.254,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41469,
    "c": 0.13949,
    "h": 271.8
  },
  "luminance": 0.06686
}

Semantic roles & 50–950 ramp

primary
#334196
secondary
#B8AD6D
accent
#C54FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334196

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

Preview Lab → · Contrast checker → · Palette generator →

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