#334499#334499

#334499 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.3% C 0.140 H 270.7°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#334499
RGBrgb(51, 68, 153)
HSLhsl(230, 50%, 40%)
HSVhsv(230, 67%, 60%)
CMYKcmyk(66.7%, 55.6%, 0%, 40%)
CIE-LABlab(32.12, 22.01, -48.65)
CIE-LCHlch(32.12, 53.39, 294.34°)
OKLaboklab(42.32% 0.0018 -0.1398)
OKLCHoklch(42.32% 0.14 270.7)
XYZxyz(9.1802, 7.1371, 31.0246)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334499 #998833
analogous
#337799 #334499 #553399
triadic
#334499 #993344 #449933
tetradic
#334499 #993377 #998833 #339955
square
#334499 #993377 #998833 #339955
split-complementary
#334499 #995533 #779933
monochromatic
#141B3D #24306B #334499 #475CC2 #7585D1

Accessibility & contrast

On white

8.65
#334499 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334499
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334499#FFFFFF#000000##FFFFFF
##3344991.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02509C
Deuteranopia (green-blind)
#004797
Tritanopia (blue-blind)
#005867
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #334499;
/* rgb */ color: rgb(51, 68, 153);
/* oklch */ color: oklch(42.3% 0.140 270.7);
Tailwind
colors: {
  custom: {
    50: '#7777b8',
    500: '#334499',
    950: '#000000',
  },
}
SCSS
$custom: #334499;
$custom-light: #7777b8;
$custom-dark: #000000;
JSON
{
  "hex": "#334499",
  "rgb": {
    "r": 51,
    "g": 68,
    "b": 153
  },
  "hsl": {
    "h": 230,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.42318,
    "c": 0.13982,
    "h": 270.7
  },
  "luminance": 0.07138
}

Semantic roles & 50–950 ramp

primary
#334499
secondary
#B9AD6E
accent
#C24EDA
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334499

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

Preview Lab → · Contrast checker → · Palette generator →

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