#334891#334891

#334891 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.5% C 0.123 H 268.7°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#334891
RGBrgb(51, 72, 145)
HSLhsl(227, 48%, 38%)
HSVhsv(227, 65%, 57%)
CMYKcmyk(64.8%, 50.3%, 0%, 43.1%)
CIE-LABlab(32.66, 16.38, -42.90)
CIE-LCHlch(32.66, 45.92, 290.90°)
OKLaboklab(42.55% -0.0029 -0.1228)
OKLCHoklch(42.55% 0.123 268.7)
XYZxyz(8.7917, 7.3821, 27.7441)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334891 #917C33
analogous
#337791 #334891 #4D3391
triadic
#334891 #913348 #489133
tetradic
#334891 #913377 #917C33 #33914D
square
#334891 #913377 #917C33 #33914D
split-complementary
#334891 #914D33 #779133
monochromatic
#131B36 #233264 #334891 #445FBD #7186CD

Accessibility & contrast

On white

8.48
#334891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#334891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334891
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334891#FFFFFF#000000##FFFFFF
##3348911.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215194
Deuteranopia (green-blind)
#0B498F
Tritanopia (blue-blind)
#005965
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #334891;
/* rgb */ color: rgb(51, 72, 145);
/* oklch */ color: oklch(42.5% 0.123 268.7);
Tailwind
colors: {
  custom: {
    50: '#757ab2',
    500: '#334891',
    950: '#000000',
  },
}
SCSS
$custom: #334891;
$custom-light: #757ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#334891",
  "rgb": {
    "r": 51,
    "g": 72,
    "b": 145
  },
  "hsl": {
    "h": 226.596,
    "s": 47.959,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42548,
    "c": 0.12286,
    "h": 268.7
  },
  "luminance": 0.07383
}

Semantic roles & 50–950 ramp

primary
#334891
secondary
#B5A56B
accent
#B950D8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334891

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

Preview Lab → · Contrast checker → · Palette generator →

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