#334899#334899

#334899 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.1% C 0.135 H 269.1°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#334899
RGBrgb(51, 72, 153)
HSLhsl(228, 50%, 40%)
HSVhsv(228, 67%, 60%)
CMYKcmyk(66.7%, 52.9%, 0%, 40%)
CIE-LABlab(33.22, 19.33, -46.87)
CIE-LCHlch(33.22, 50.70, 292.42°)
OKLaboklab(43.15% -0.002 -0.1345)
OKLCHoklch(43.15% 0.135 269.1)
XYZxyz(9.4304, 7.6376, 31.1080)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334899 #998433
analogous
#337B99 #334899 #513399
triadic
#334899 #993348 #489933
tetradic
#334899 #99337B #998433 #339951
square
#334899 #99337B #998433 #339951
split-complementary
#334899 #995133 #7B9933
monochromatic
#141D3D #24326B #334899 #4761C2 #7588D1

Accessibility & contrast

On white

8.31
#334899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#334899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334899
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334899#FFFFFF#000000##FFFFFF
##3348991.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16539C
Deuteranopia (green-blind)
#004A97
Tritanopia (blue-blind)
#005B69
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #334899;
/* rgb */ color: rgb(51, 72, 153);
/* oklch */ color: oklch(43.1% 0.135 269.1);
Tailwind
colors: {
  custom: {
    50: '#767ab8',
    500: '#334899',
    950: '#000000',
  },
}
SCSS
$custom: #334899;
$custom-light: #767ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#334899",
  "rgb": {
    "r": 51,
    "g": 72,
    "b": 153
  },
  "hsl": {
    "h": 227.647,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.43146,
    "c": 0.13453,
    "h": 269.1
  },
  "luminance": 0.07638
}

Semantic roles & 50–950 ramp

primary
#334899
secondary
#B9AA6E
accent
#BD4EDA
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334899

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

Preview Lab → · Contrast checker → · Palette generator →

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