#334697#334697

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

Color values

HEX#334697
RGBrgb(51, 70, 151)
HSLhsl(229, 50%, 40%)
HSVhsv(229, 66%, 59%)
CMYKcmyk(66.2%, 53.6%, 0%, 40.8%)
CIE-LABlab(32.52, 19.93, -46.78)
CIE-LCHlch(32.52, 50.85, 293.08°)
OKLaboklab(42.57% -0.0002 -0.1343)
OKLCHoklch(42.57% 0.134 269.9)
XYZxyz(9.1394, 7.3177, 30.2030)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334697 #978433
analogous
#337897 #334697 #523397
triadic
#334697 #973346 #469733
tetradic
#334697 #973378 #978433 #339752
square
#334697 #973378 #978433 #339752
split-complementary
#334697 #975233 #789733
monochromatic
#141C3C #243169 #334697 #475EC1 #7486D0

Accessibility & contrast

On white

8.52
#334697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334697
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334697#FFFFFF#000000##FFFFFF
##3346971.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12519A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#005967
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #334697;
/* rgb */ color: rgb(51, 70, 151);
/* oklch */ color: oklch(42.6% 0.134 269.9);
Tailwind
colors: {
  custom: {
    50: '#7679b6',
    500: '#334697',
    950: '#000000',
  },
}
SCSS
$custom: #334697;
$custom-light: #7679b6;
$custom-dark: #000000;
JSON
{
  "hex": "#334697",
  "rgb": {
    "r": 51,
    "g": 70,
    "b": 151
  },
  "hsl": {
    "h": 228.6,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42574,
    "c": 0.13429,
    "h": 269.9
  },
  "luminance": 0.07318
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334697

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

Preview Lab → · Contrast checker → · Palette generator →

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