#334895#334895

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

Color values

HEX#334895
RGBrgb(51, 72, 149)
HSLhsl(227, 49%, 39%)
HSVhsv(227, 66%, 58%)
CMYKcmyk(65.8%, 51.7%, 0%, 41.6%)
CIE-LABlab(32.94, 17.86, -44.89)
CIE-LCHlch(32.94, 48.31, 291.69°)
OKLaboklab(42.84% -0.0024 -0.1287)
OKLCHoklch(42.84% 0.129 268.9)
XYZxyz(9.1056, 7.5076, 29.3972)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334895 #958033
analogous
#337995 #334895 #4F3395
triadic
#334895 #953348 #489533
tetradic
#334895 #953379 #958033 #33954F
square
#334895 #953379 #958033 #33954F
split-complementary
#334895 #954F33 #799533
monochromatic
#141C3A #233267 #334895 #4660C0 #7387CF

Accessibility & contrast

On white

8.39
#334895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334895
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334895#FFFFFF#000000##FFFFFF
##3348951.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334895;
/* rgb */ color: rgb(51, 72, 149);
/* oklch */ color: oklch(42.8% 0.129 268.9);
Tailwind
colors: {
  custom: {
    50: '#767ab5',
    500: '#334895',
    950: '#000000',
  },
}
SCSS
$custom: #334895;
$custom-light: #767ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#334895",
  "rgb": {
    "r": 51,
    "g": 72,
    "b": 149
  },
  "hsl": {
    "h": 227.143,
    "s": 49,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42844,
    "c": 0.12873,
    "h": 268.9
  },
  "luminance": 0.07508
}

Semantic roles & 50–950 ramp

primary
#334895
secondary
#B7A76C
accent
#BB4FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334895

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

Preview Lab → · Contrast checker → · Palette generator →

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