#334096#334096

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

Color values

HEX#334096
RGBrgb(51, 64, 150)
HSLhsl(232, 49%, 39%)
HSVhsv(232, 66%, 59%)
CMYKcmyk(66%, 57.3%, 0%, 41.2%)
CIE-LABlab(30.81, 23.58, -48.94)
CIE-LCHlch(30.81, 54.32, 295.72°)
OKLaboklab(41.27% 0.0055 -0.1407)
OKLCHoklch(41.27% 0.141 272.2)
XYZxyz(8.7018, 6.5718, 29.6582)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334096 #968933
analogous
#337296 #334096 #583396
triadic
#334096 #963340 #409633
tetradic
#334096 #963372 #968933 #339658
square
#334096 #963372 #968933 #339658
split-complementary
#334096 #965833 #729633
monochromatic
#14193B #232D68 #334096 #4656C0 #7480D0

Accessibility & contrast

On white

9.07
#334096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#334096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334096
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334096#FFFFFF#000000##FFFFFF
##3340961.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334096;
/* rgb */ color: rgb(51, 64, 150);
/* oklch */ color: oklch(41.3% 0.141 272.2);
Tailwind
colors: {
  custom: {
    50: '#7674b6',
    500: '#334096',
    950: '#000000',
  },
}
SCSS
$custom: #334096;
$custom-light: #7674b6;
$custom-dark: #000000;
JSON
{
  "hex": "#334096",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 150
  },
  "hsl": {
    "h": 232.121,
    "s": 49.254,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41268,
    "c": 0.14082,
    "h": 272.2
  },
  "luminance": 0.06573
}

Semantic roles & 50–950 ramp

primary
#334096
secondary
#B8AE6D
accent
#C74FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334096

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

Preview Lab → · Contrast checker → · Palette generator →

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