#334394#334394

#334394 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.7% C 0.134 H 271.1°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#334394
RGBrgb(51, 67, 148)
HSLhsl(230, 49%, 39%)
HSVhsv(230, 66%, 58%)
CMYKcmyk(65.5%, 54.7%, 0%, 42%)
CIE-LABlab(31.48, 20.84, -46.64)
CIE-LCHlch(31.48, 51.08, 294.07°)
OKLaboklab(41.72% 0.0025 -0.1339)
OKLCHoklch(41.72% 0.134 271.1)
XYZxyz(8.7159, 6.8555, 28.8752)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334394 #948433
analogous
#337494 #334394 #543394
triadic
#334394 #943343 #439433
tetradic
#334394 #943374 #948433 #339454
square
#334394 #943374 #948433 #339454
split-complementary
#334394 #945433 #749433
monochromatic
#141A39 #232E66 #334394 #4559BF #7382CF

Accessibility & contrast

On white

8.86
#334394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334394
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334394#FFFFFF#000000##FFFFFF
##3343941.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4F97
Deuteranopia (green-blind)
#004692
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #334394;
/* rgb */ color: rgb(51, 67, 148);
/* oklch */ color: oklch(41.7% 0.134 271.1);
Tailwind
colors: {
  custom: {
    50: '#7676b4',
    500: '#334394',
    950: '#000000',
  },
}
SCSS
$custom: #334394;
$custom-light: #7676b4;
$custom-dark: #000000;
JSON
{
  "hex": "#334394",
  "rgb": {
    "r": 51,
    "g": 67,
    "b": 148
  },
  "hsl": {
    "h": 230.103,
    "s": 48.744,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41719,
    "c": 0.13394,
    "h": 271.1
  },
  "luminance": 0.06856
}

Semantic roles & 50–950 ramp

primary
#334394
secondary
#B7AA6C
accent
#C24FD8
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334394

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

Preview Lab → · Contrast checker → · Palette generator →

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