#334894#334894

#334894 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.8% C 0.127 H 268.9°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#334894
RGBrgb(51, 72, 148)
HSLhsl(227, 49%, 39%)
HSVhsv(227, 66%, 58%)
CMYKcmyk(65.5%, 51.4%, 0%, 42%)
CIE-LABlab(32.87, 17.49, -44.40)
CIE-LCHlch(32.87, 47.71, 291.50°)
OKLaboklab(42.77% -0.0025 -0.1272)
OKLCHoklch(42.77% 0.127 268.9)
XYZxyz(9.0261, 7.4758, 28.9785)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334894 #947F33
analogous
#337994 #334894 #4F3394
triadic
#334894 #943348 #489433
tetradic
#334894 #943379 #947F33 #33944F
square
#334894 #943379 #947F33 #33944F
split-complementary
#334894 #944F33 #799433
monochromatic
#141C39 #233266 #334894 #4560BF #7387CF

Accessibility & contrast

On white

8.42
#334894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#334894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334894
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334894#FFFFFF#000000##FFFFFF
##3348941.008.422.508.42
#FFFFFF8.421.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5297
Deuteranopia (green-blind)
#014992
Tritanopia (blue-blind)
#005A67
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #334894;
/* rgb */ color: rgb(51, 72, 148);
/* oklch */ color: oklch(42.8% 0.127 268.9);
Tailwind
colors: {
  custom: {
    50: '#757ab4',
    500: '#334894',
    950: '#000000',
  },
}
SCSS
$custom: #334894;
$custom-light: #757ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#334894",
  "rgb": {
    "r": 51,
    "g": 72,
    "b": 148
  },
  "hsl": {
    "h": 227.01,
    "s": 48.744,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4277,
    "c": 0.12726,
    "h": 268.9
  },
  "luminance": 0.07477
}

Semantic roles & 50–950 ramp

primary
#334894
secondary
#B7A76C
accent
#BB4FD8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334894

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

Preview Lab → · Contrast checker → · Palette generator →

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