#334698#334698

#334698 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.7% C 0.136 H 269.9°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#334698
RGBrgb(51, 70, 152)
HSLhsl(229, 50%, 40%)
HSVhsv(229, 66%, 60%)
CMYKcmyk(66.4%, 53.9%, 0%, 40.4%)
CIE-LABlab(32.59, 20.30, -47.27)
CIE-LCHlch(32.59, 51.45, 293.24°)
OKLaboklab(42.65% -0.0001 -0.1357)
OKLCHoklch(42.65% 0.136 269.9)
XYZxyz(9.2210, 7.3503, 30.6325)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334698 #988533
analogous
#337998 #334698 #533398
triadic
#334698 #983346 #469833
tetradic
#334698 #983379 #988533 #339853
square
#334698 #983379 #988533 #339853
split-complementary
#334698 #985333 #799833
monochromatic
#141C3C #24316A #334698 #475EC1 #7586D1

Accessibility & contrast

On white

8.50
#334698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#334698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334698
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334698#FFFFFF#000000##FFFFFF
##3346981.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10519B
Deuteranopia (green-blind)
#004896
Tritanopia (blue-blind)
#005968
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #334698;
/* rgb */ color: rgb(51, 70, 152);
/* oklch */ color: oklch(42.7% 0.136 269.9);
Tailwind
colors: {
  custom: {
    50: '#7679b7',
    500: '#334698',
    950: '#000000',
  },
}
SCSS
$custom: #334698;
$custom-light: #7679b7;
$custom-dark: #000000;
JSON
{
  "hex": "#334698",
  "rgb": {
    "r": 51,
    "g": 70,
    "b": 152
  },
  "hsl": {
    "h": 228.713,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42652,
    "c": 0.13574,
    "h": 269.9
  },
  "luminance": 0.07351
}

Semantic roles & 50–950 ramp

primary
#334698
secondary
#B9AB6E
accent
#BF4FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334698

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

Preview Lab → · Contrast checker → · Palette generator →

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