#334595#334595

#334595 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.2% C 0.133 H 270.3°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#334595
RGBrgb(51, 69, 149)
HSLhsl(229, 49%, 39%)
HSVhsv(229, 66%, 58%)
CMYKcmyk(65.8%, 53.7%, 0%, 41.6%)
CIE-LABlab(32.10, 19.86, -46.24)
CIE-LCHlch(32.10, 50.33, 293.25°)
OKLaboklab(42.21% 0.0006 -0.1327)
OKLCHoklch(42.21% 0.133 270.3)
XYZxyz(8.9163, 7.1292, 29.3341)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334595 #958333
analogous
#337695 #334595 #523395
triadic
#334595 #953345 #459533
tetradic
#334595 #953376 #958333 #339552
square
#334595 #953376 #958333 #339552
split-complementary
#334595 #955233 #769533
monochromatic
#141B3A #233067 #334595 #465CC0 #7384CF

Accessibility & contrast

On white

8.66
#334595 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#334595 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334595
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334595#FFFFFF#000000##FFFFFF
##3345951.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125098
Deuteranopia (green-blind)
#004793
Tritanopia (blue-blind)
#005866
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #334595;
/* rgb */ color: rgb(51, 69, 149);
/* oklch */ color: oklch(42.2% 0.133 270.3);
Tailwind
colors: {
  custom: {
    50: '#7678b5',
    500: '#334595',
    950: '#000000',
  },
}
SCSS
$custom: #334595;
$custom-light: #7678b5;
$custom-dark: #000000;
JSON
{
  "hex": "#334595",
  "rgb": {
    "r": 51,
    "g": 69,
    "b": 149
  },
  "hsl": {
    "h": 228.98,
    "s": 49,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42212,
    "c": 0.13272,
    "h": 270.3
  },
  "luminance": 0.0713
}

Semantic roles & 50–950 ramp

primary
#334595
secondary
#B7AA6C
accent
#BF4FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334595

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

Preview Lab → · Contrast checker → · Palette generator →

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