#334198#334198

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

Color values

HEX#334198
RGBrgb(51, 65, 152)
HSLhsl(232, 50%, 40%)
HSVhsv(232, 66%, 60%)
CMYKcmyk(66.4%, 57.2%, 0%, 40.4%)
CIE-LABlab(31.23, 23.64, -49.47)
CIE-LCHlch(31.23, 54.83, 295.54°)
OKLaboklab(41.63% 0.0046 -0.1423)
OKLCHoklch(41.63% 0.142 271.8)
XYZxyz(8.9211, 6.7506, 30.5325)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334198 #988A33
analogous
#337498 #334198 #573398
triadic
#334198 #983341 #419833
tetradic
#334198 #983374 #988A33 #339857
square
#334198 #983374 #988A33 #339857
split-complementary
#334198 #985733 #749833
monochromatic
#141A3C #242D6A #334198 #4758C1 #7582D1

Accessibility & contrast

On white

8.94
#334198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#334198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334198
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334198#FFFFFF#000000##FFFFFF
##3341981.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334198;
/* rgb */ color: rgb(51, 65, 152);
/* oklch */ color: oklch(41.6% 0.142 271.8);
Tailwind
colors: {
  custom: {
    50: '#7775b7',
    500: '#334198',
    950: '#000000',
  },
}
SCSS
$custom: #334198;
$custom-light: #7775b7;
$custom-dark: #000000;
JSON
{
  "hex": "#334198",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 152
  },
  "hsl": {
    "h": 231.683,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41631,
    "c": 0.14235,
    "h": 271.8
  },
  "luminance": 0.06751
}

Semantic roles & 50–950 ramp

primary
#334198
secondary
#B9AE6E
accent
#C64FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334198

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

Preview Lab → · Contrast checker → · Palette generator →

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