#334194#334194

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

Color values

HEX#334194
RGBrgb(51, 65, 148)
HSLhsl(231, 49%, 39%)
HSVhsv(231, 66%, 58%)
CMYKcmyk(65.5%, 56.1%, 0%, 42%)
CIE-LABlab(30.93, 22.18, -47.52)
CIE-LCHlch(30.93, 52.44, 295.02°)
OKLaboklab(41.31% 0.0044 -0.1365)
OKLCHoklch(41.31% 0.137 271.8)
XYZxyz(8.5990, 6.6218, 28.8362)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334194 #948633
analogous
#337294 #334194 #563394
triadic
#334194 #943341 #419433
tetradic
#334194 #943372 #948633 #339456
square
#334194 #943372 #948633 #339456
split-complementary
#334194 #945633 #729433
monochromatic
#141939 #232D66 #334194 #4557BF #7380CF

Accessibility & contrast

On white

9.03
#334194 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334194
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334194#FFFFFF#000000##FFFFFF
##3341941.009.032.329.03
#FFFFFF9.031.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D97
Deuteranopia (green-blind)
#004592
Tritanopia (blue-blind)
#005564
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #334194;
/* rgb */ color: rgb(51, 65, 148);
/* oklch */ color: oklch(41.3% 0.137 271.8);
Tailwind
colors: {
  custom: {
    50: '#7675b4',
    500: '#334194',
    950: '#000000',
  },
}
SCSS
$custom: #334194;
$custom-light: #7675b4;
$custom-dark: #000000;
JSON
{
  "hex": "#334194",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 148
  },
  "hsl": {
    "h": 231.34,
    "s": 48.744,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41309,
    "c": 0.13661,
    "h": 271.8
  },
  "luminance": 0.06623
}

Semantic roles & 50–950 ramp

primary
#334194
secondary
#B7AC6C
accent
#C54FD8
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334194

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

Preview Lab → · Contrast checker → · Palette generator →

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