#334393#334393

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

Color values

HEX#334393
RGBrgb(51, 67, 147)
HSLhsl(230, 48%, 39%)
HSVhsv(230, 65%, 58%)
CMYKcmyk(65.3%, 54.4%, 0%, 42.4%)
CIE-LABlab(31.40, 20.47, -46.15)
CIE-LCHlch(31.40, 50.48, 293.92°)
OKLaboklab(41.64% 0.0024 -0.1325)
OKLCHoklch(41.64% 0.132 271)
XYZxyz(8.6371, 6.8239, 28.4601)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334393 #938333
analogous
#337393 #334393 #533393
triadic
#334393 #933343 #439333
tetradic
#334393 #933373 #938333 #339353
square
#334393 #933373 #938333 #339353
split-complementary
#334393 #935333 #739333
monochromatic
#131A38 #232E66 #334393 #4559BE #7282CE

Accessibility & contrast

On white

8.88
#334393 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#334393 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334393
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334393#FFFFFF#000000##FFFFFF
##3343931.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4E96
Deuteranopia (green-blind)
#004691
Tritanopia (blue-blind)
#005664
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #334393;
/* rgb */ color: rgb(51, 67, 147);
/* oklch */ color: oklch(41.6% 0.132 271.0);
Tailwind
colors: {
  custom: {
    50: '#7576b3',
    500: '#334393',
    950: '#000000',
  },
}
SCSS
$custom: #334393;
$custom-light: #7576b3;
$custom-dark: #000000;
JSON
{
  "hex": "#334393",
  "rgb": {
    "r": 51,
    "g": 67,
    "b": 147
  },
  "hsl": {
    "h": 230,
    "s": 48.485,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41641,
    "c": 0.13249,
    "h": 271
  },
  "luminance": 0.06825
}

Semantic roles & 50–950 ramp

primary
#334393
secondary
#B6AA6C
accent
#C150D8
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334393

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

Preview Lab → · Contrast checker → · Palette generator →

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