#334696#334696

#334696 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.5% C 0.133 H 269.9°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#334696
RGBrgb(51, 70, 150)
HSLhsl(228, 49%, 39%)
HSVhsv(228, 66%, 59%)
CMYKcmyk(66%, 53.3%, 0%, 41.2%)
CIE-LABlab(32.45, 19.56, -46.29)
CIE-LCHlch(32.45, 50.25, 292.91°)
OKLaboklab(42.5% -0.0003 -0.1328)
OKLCHoklch(42.5% 0.133 269.9)
XYZxyz(9.0586, 7.2853, 29.7771)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334696 #968333
analogous
#337896 #334696 #523396
triadic
#334696 #963346 #469633
tetradic
#334696 #963378 #968333 #339652
square
#334696 #963378 #968333 #339652
split-complementary
#334696 #965233 #789633
monochromatic
#141B3B #233168 #334696 #465DC0 #7485D0

Accessibility & contrast

On white

8.55
#334696 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#334696 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334696
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334696#FFFFFF#000000##FFFFFF
##3346961.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145199
Deuteranopia (green-blind)
#004894
Tritanopia (blue-blind)
#005967
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #334696;
/* rgb */ color: rgb(51, 70, 150);
/* oklch */ color: oklch(42.5% 0.133 269.9);
Tailwind
colors: {
  custom: {
    50: '#7679b5',
    500: '#334696',
    950: '#000000',
  },
}
SCSS
$custom: #334696;
$custom-light: #7679b5;
$custom-dark: #000000;
JSON
{
  "hex": "#334696",
  "rgb": {
    "r": 51,
    "g": 70,
    "b": 150
  },
  "hsl": {
    "h": 228.485,
    "s": 49.254,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42498,
    "c": 0.13284,
    "h": 269.9
  },
  "luminance": 0.07286
}

Semantic roles & 50–950 ramp

primary
#334696
secondary
#B8A96D
accent
#BE4FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334696

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

Preview Lab → · Contrast checker → · Palette generator →

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