#334197#334197

#334197 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.5% C 0.141 H 271.8°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#334197
RGBrgb(51, 65, 151)
HSLhsl(232, 50%, 40%)
HSVhsv(232, 66%, 59%)
CMYKcmyk(66.2%, 57%, 0%, 40.8%)
CIE-LABlab(31.16, 23.28, -48.99)
CIE-LCHlch(31.16, 54.24, 295.41°)
OKLaboklab(41.55% 0.0045 -0.1408)
OKLCHoklch(41.55% 0.141 271.8)
XYZxyz(8.8396, 6.7180, 30.1030)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334197 #978933
analogous
#337397 #334197 #573397
triadic
#334197 #973341 #419733
tetradic
#334197 #973373 #978933 #339757
square
#334197 #973373 #978933 #339757
split-complementary
#334197 #975733 #739733
monochromatic
#141A3C #242D69 #334197 #4758C1 #7481D0

Accessibility & contrast

On white

8.96
#334197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#334197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334197
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334197#FFFFFF#000000##FFFFFF
##3341971.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #334197;
/* rgb */ color: rgb(51, 65, 151);
/* oklch */ color: oklch(41.5% 0.141 271.8);
Tailwind
colors: {
  custom: {
    50: '#7675b6',
    500: '#334197',
    950: '#000000',
  },
}
SCSS
$custom: #334197;
$custom-light: #7675b6;
$custom-dark: #000000;
JSON
{
  "hex": "#334197",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 151
  },
  "hsl": {
    "h": 231.6,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4155,
    "c": 0.14092,
    "h": 271.8
  },
  "luminance": 0.06719
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334197

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

Preview Lab → · Contrast checker → · Palette generator →

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