#334898#334898

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

Color values

HEX#334898
RGBrgb(51, 72, 152)
HSLhsl(228, 50%, 40%)
HSVhsv(228, 66%, 60%)
CMYKcmyk(66.4%, 52.6%, 0%, 40.4%)
CIE-LABlab(33.15, 18.96, -46.38)
CIE-LCHlch(33.15, 50.10, 292.24°)
OKLaboklab(43.07% -0.0021 -0.1331)
OKLCHoklch(43.07% 0.133 269.1)
XYZxyz(9.3482, 7.6047, 30.6749)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334898 #988333
analogous
#337A98 #334898 #513398
triadic
#334898 #983348 #489833
tetradic
#334898 #98337A #988333 #339851
square
#334898 #98337A #988333 #339851
split-complementary
#334898 #985133 #7A9833
monochromatic
#141D3C #24326A #334898 #4760C1 #7588D1

Accessibility & contrast

On white

8.33
#334898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#334898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334898
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334898#FFFFFF#000000##FFFFFF
##3348981.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18539B
Deuteranopia (green-blind)
#004A96
Tritanopia (blue-blind)
#005B69
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #334898;
/* rgb */ color: rgb(51, 72, 152);
/* oklch */ color: oklch(43.1% 0.133 269.1);
Tailwind
colors: {
  custom: {
    50: '#767ab7',
    500: '#334898',
    950: '#000000',
  },
}
SCSS
$custom: #334898;
$custom-light: #767ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#334898",
  "rgb": {
    "r": 51,
    "g": 72,
    "b": 152
  },
  "hsl": {
    "h": 227.525,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4307,
    "c": 0.13309,
    "h": 269.1
  },
  "luminance": 0.07606
}

Semantic roles & 50–950 ramp

primary
#334898
secondary
#B9A96E
accent
#BC4FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334898

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

Preview Lab → · Contrast checker → · Palette generator →

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