#334597#334597

#334597 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.4% C 0.136 H 270.3°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#334597
RGBrgb(51, 69, 151)
HSLhsl(229, 50%, 40%)
HSVhsv(229, 66%, 59%)
CMYKcmyk(66.2%, 54.3%, 0%, 40.8%)
CIE-LABlab(32.24, 20.60, -47.23)
CIE-LCHlch(32.24, 51.52, 293.57°)
OKLaboklab(42.37% 0.0007 -0.1356)
OKLCHoklch(42.37% 0.136 270.3)
XYZxyz(9.0774, 7.1936, 30.1823)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334597 #978533
analogous
#337797 #334597 #533397
triadic
#334597 #973345 #459733
tetradic
#334597 #973377 #978533 #339753
square
#334597 #973377 #978533 #339753
split-complementary
#334597 #975333 #779733
monochromatic
#141B3C #243069 #334597 #475DC1 #7485D0

Accessibility & contrast

On white

8.61
#334597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#334597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334597
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334597#FFFFFF#000000##FFFFFF
##3345971.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E519A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#005867
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #334597;
/* rgb */ color: rgb(51, 69, 151);
/* oklch */ color: oklch(42.4% 0.136 270.3);
Tailwind
colors: {
  custom: {
    50: '#7678b6',
    500: '#334597',
    950: '#000000',
  },
}
SCSS
$custom: #334597;
$custom-light: #7678b6;
$custom-dark: #000000;
JSON
{
  "hex": "#334597",
  "rgb": {
    "r": 51,
    "g": 69,
    "b": 151
  },
  "hsl": {
    "h": 229.2,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42367,
    "c": 0.13562,
    "h": 270.3
  },
  "luminance": 0.07194
}

Semantic roles & 50–950 ramp

primary
#334597
secondary
#B8AB6D
accent
#C04FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334597

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

Preview Lab → · Contrast checker → · Palette generator →

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