#334199#334199

#334199 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.7% C 0.144 H 271.8°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#334199
RGBrgb(51, 65, 153)
HSLhsl(232, 50%, 40%)
HSVhsv(232, 67%, 60%)
CMYKcmyk(66.7%, 57.5%, 0%, 40%)
CIE-LABlab(31.31, 24.01, -49.96)
CIE-LCHlch(31.31, 55.43, 295.67°)
OKLaboklab(41.71% 0.0046 -0.1437)
OKLCHoklch(41.71% 0.144 271.8)
XYZxyz(9.0034, 6.7835, 30.9657)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334199 #998B33
analogous
#337499 #334199 #583399
triadic
#334199 #993341 #419933
tetradic
#334199 #993374 #998B33 #339958
square
#334199 #993374 #998B33 #339958
split-complementary
#334199 #995833 #749933
monochromatic
#141A3D #242D6B #334199 #4758C2 #7582D1

Accessibility & contrast

On white

8.91
#334199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#334199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334199
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334199#FFFFFF#000000##FFFFFF
##3341991.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334199;
/* rgb */ color: rgb(51, 65, 153);
/* oklch */ color: oklch(41.7% 0.144 271.8);
Tailwind
colors: {
  custom: {
    50: '#7775b8',
    500: '#334199',
    950: '#000000',
  },
}
SCSS
$custom: #334199;
$custom-light: #7775b8;
$custom-dark: #000000;
JSON
{
  "hex": "#334199",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 153
  },
  "hsl": {
    "h": 231.765,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.41713,
    "c": 0.14377,
    "h": 271.8
  },
  "luminance": 0.06784
}

Semantic roles & 50–950 ramp

primary
#334199
secondary
#B9AF6E
accent
#C64EDA
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #334199

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

Preview Lab → · Contrast checker → · Palette generator →

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