#334193#334193

#334193 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.2% C 0.135 H 271.8°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#334193
RGBrgb(51, 65, 147)
HSLhsl(231, 48%, 39%)
HSVhsv(231, 65%, 58%)
CMYKcmyk(65.3%, 55.8%, 0%, 42.4%)
CIE-LABlab(30.86, 21.81, -47.03)
CIE-LCHlch(30.86, 51.84, 294.88°)
OKLaboklab(41.23% 0.0044 -0.1351)
OKLCHoklch(41.23% 0.135 271.8)
XYZxyz(8.5202, 6.5902, 28.4211)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334193 #938533
analogous
#337193 #334193 #553393
triadic
#334193 #933341 #419333
tetradic
#334193 #933371 #938533 #339355
square
#334193 #933371 #938533 #339355
split-complementary
#334193 #935533 #719333
monochromatic
#131938 #232D66 #334193 #4557BE #7280CE

Accessibility & contrast

On white

9.06
#334193 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#334193 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334193
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334193#FFFFFF#000000##FFFFFF
##3341931.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034D96
Deuteranopia (green-blind)
#004491
Tritanopia (blue-blind)
#005463
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #334193;
/* rgb */ color: rgb(51, 65, 147);
/* oklch */ color: oklch(41.2% 0.135 271.8);
Tailwind
colors: {
  custom: {
    50: '#7675b3',
    500: '#334193',
    950: '#000000',
  },
}
SCSS
$custom: #334193;
$custom-light: #7675b3;
$custom-dark: #000000;
JSON
{
  "hex": "#334193",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 147
  },
  "hsl": {
    "h": 231.25,
    "s": 48.485,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4123,
    "c": 0.13517,
    "h": 271.8
  },
  "luminance": 0.06591
}

Semantic roles & 50–950 ramp

primary
#334193
secondary
#B6AB6C
accent
#C450D8
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334193

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

Preview Lab → · Contrast checker → · Palette generator →

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