#334099#334099

#334099 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.5% C 0.145 H 272.2°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#334099
RGBrgb(51, 64, 153)
HSLhsl(232, 50%, 40%)
HSVhsv(232, 67%, 60%)
CMYKcmyk(66.7%, 58.2%, 0%, 40%)
CIE-LABlab(31.04, 24.67, -50.39)
CIE-LCHlch(31.04, 56.10, 296.09°)
OKLaboklab(41.51% 0.0055 -0.145)
OKLCHoklch(41.51% 0.145 272.2)
XYZxyz(8.9465, 6.6697, 30.9467)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334099 #998C33
analogous
#337399 #334099 #593399
triadic
#334099 #993340 #409933
tetradic
#334099 #993373 #998C33 #339959
square
#334099 #993373 #998C33 #339959
split-complementary
#334099 #995933 #739933
monochromatic
#141A3D #242D6B #334099 #4757C2 #7581D1

Accessibility & contrast

On white

9.00
#334099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#334099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334099
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334099#FFFFFF#000000##FFFFFF
##3340991.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9C
Deuteranopia (green-blind)
#004597
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #334099;
/* rgb */ color: rgb(51, 64, 153);
/* oklch */ color: oklch(41.5% 0.145 272.2);
Tailwind
colors: {
  custom: {
    50: '#7774b8',
    500: '#334099',
    950: '#000000',
  },
}
SCSS
$custom: #334099;
$custom-light: #7774b8;
$custom-dark: #000000;
JSON
{
  "hex": "#334099",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 153
  },
  "hsl": {
    "h": 232.353,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.41514,
    "c": 0.14509,
    "h": 272.2
  },
  "luminance": 0.06671
}

Semantic roles & 50–950 ramp

primary
#334099
secondary
#B9B06E
accent
#C84EDA
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #334099

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

Preview Lab → · Contrast checker → · Palette generator →

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