#334594#334594

#334594 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.1% C 0.131 H 270.2°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#334594
RGBrgb(51, 69, 148)
HSLhsl(229, 49%, 39%)
HSVhsv(229, 66%, 58%)
CMYKcmyk(65.5%, 53.4%, 0%, 42%)
CIE-LABlab(32.03, 19.50, -45.75)
CIE-LCHlch(32.03, 49.73, 293.08°)
OKLaboklab(42.14% 0.0005 -0.1313)
OKLCHoklch(42.14% 0.131 270.2)
XYZxyz(8.8369, 7.0974, 28.9155)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334594 #948233
analogous
#337694 #334594 #523394
triadic
#334594 #943345 #459433
tetradic
#334594 #943376 #948233 #339452
square
#334594 #943376 #948233 #339452
split-complementary
#334594 #945233 #769433
monochromatic
#141B39 #233066 #334594 #455CBF #7384CF

Accessibility & contrast

On white

8.68
#334594 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#334594 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334594
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334594#FFFFFF#000000##FFFFFF
##3345941.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145097
Deuteranopia (green-blind)
#004792
Tritanopia (blue-blind)
#005865
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #334594;
/* rgb */ color: rgb(51, 69, 148);
/* oklch */ color: oklch(42.1% 0.131 270.2);
Tailwind
colors: {
  custom: {
    50: '#7578b4',
    500: '#334594',
    950: '#000000',
  },
}
SCSS
$custom: #334594;
$custom-light: #7578b4;
$custom-dark: #000000;
JSON
{
  "hex": "#334594",
  "rgb": {
    "r": 51,
    "g": 69,
    "b": 148
  },
  "hsl": {
    "h": 228.866,
    "s": 48.744,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42135,
    "c": 0.13127,
    "h": 270.2
  },
  "luminance": 0.07098
}

Semantic roles & 50–950 ramp

primary
#334594
secondary
#B7A96C
accent
#BF4FD8
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334594

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

Preview Lab → · Contrast checker → · Palette generator →

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