#334495#334495

#334495 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.0% C 0.134 H 270.7°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#334495
RGBrgb(51, 68, 149)
HSLhsl(230, 49%, 39%)
HSVhsv(230, 66%, 58%)
CMYKcmyk(65.8%, 54.4%, 0%, 41.6%)
CIE-LABlab(31.82, 20.53, -46.69)
CIE-LCHlch(31.82, 51.00, 293.74°)
OKLaboklab(42% 0.0016 -0.134)
OKLCHoklch(42% 0.134 270.7)
XYZxyz(8.8553, 7.0072, 29.3138)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334495 #958433
analogous
#337595 #334495 #533395
triadic
#334495 #953344 #449533
tetradic
#334495 #953375 #958433 #339553
square
#334495 #953375 #958433 #339553
split-complementary
#334495 #955333 #759533
monochromatic
#141A3A #232F67 #334495 #465BC0 #7383CF

Accessibility & contrast

On white

8.74
#334495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#334495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334495
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334495#FFFFFF#000000##FFFFFF
##3344951.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4F98
Deuteranopia (green-blind)
#004793
Tritanopia (blue-blind)
#005765
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #334495;
/* rgb */ color: rgb(51, 68, 149);
/* oklch */ color: oklch(42.0% 0.134 270.7);
Tailwind
colors: {
  custom: {
    50: '#7677b5',
    500: '#334495',
    950: '#000000',
  },
}
SCSS
$custom: #334495;
$custom-light: #7677b5;
$custom-dark: #000000;
JSON
{
  "hex": "#334495",
  "rgb": {
    "r": 51,
    "g": 68,
    "b": 149
  },
  "hsl": {
    "h": 229.592,
    "s": 49,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42004,
    "c": 0.13406,
    "h": 270.7
  },
  "luminance": 0.07008
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334495

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

Preview Lab → · Contrast checker → · Palette generator →

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