#334299#334299

#334299 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.9% C 0.142 H 271.5°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#334299
RGBrgb(51, 66, 153)
HSLhsl(231, 50%, 40%)
HSVhsv(231, 67%, 60%)
CMYKcmyk(66.7%, 56.9%, 0%, 40%)
CIE-LABlab(31.58, 23.34, -49.52)
CIE-LCHlch(31.58, 54.75, 295.24°)
OKLaboklab(41.91% 0.0037 -0.1424)
OKLCHoklch(41.91% 0.142 271.5)
XYZxyz(9.0613, 6.8993, 30.9850)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334299 #998A33
analogous
#337599 #334299 #573399
triadic
#334299 #993342 #429933
tetradic
#334299 #993375 #998A33 #339957
square
#334299 #993375 #998A33 #339957
split-complementary
#334299 #995733 #759933
monochromatic
#141A3D #242E6B #334299 #4759C2 #7583D1

Accessibility & contrast

On white

8.82
#334299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#334299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334299
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334299#FFFFFF#000000##FFFFFF
##3342991.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9C
Deuteranopia (green-blind)
#004697
Tritanopia (blue-blind)
#005767
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #334299;
/* rgb */ color: rgb(51, 66, 153);
/* oklch */ color: oklch(41.9% 0.142 271.5);
Tailwind
colors: {
  custom: {
    50: '#7776b8',
    500: '#334299',
    950: '#000000',
  },
}
SCSS
$custom: #334299;
$custom-light: #7776b8;
$custom-dark: #000000;
JSON
{
  "hex": "#334299",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 153
  },
  "hsl": {
    "h": 231.176,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.41913,
    "c": 0.14246,
    "h": 271.5
  },
  "luminance": 0.069
}

Semantic roles & 50–950 ramp

primary
#334299
secondary
#B9AE6E
accent
#C54EDA
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #334299

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

Preview Lab → · Contrast checker → · Palette generator →

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