#334095#334095

#334095 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.2% C 0.139 H 272.2°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#334095
RGBrgb(51, 64, 149)
HSLhsl(232, 49%, 39%)
HSVhsv(232, 66%, 58%)
CMYKcmyk(65.8%, 57%, 0%, 41.6%)
CIE-LABlab(30.74, 23.21, -48.45)
CIE-LCHlch(30.74, 53.72, 295.60°)
OKLaboklab(41.19% 0.0054 -0.1393)
OKLCHoklch(41.19% 0.139 272.2)
XYZxyz(8.6216, 6.5398, 29.2359)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334095 #958833
analogous
#337195 #334095 #573395
triadic
#334095 #953340 #409533
tetradic
#334095 #953371 #958833 #339557
square
#334095 #953371 #958833 #339557
split-complementary
#334095 #955733 #719533
monochromatic
#14193A #232C67 #334095 #4656C0 #737FCF

Accessibility & contrast

On white

9.10
#334095 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334095
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334095#FFFFFF#000000##FFFFFF
##3340951.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D98
Deuteranopia (green-blind)
#004493
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #334095;
/* rgb */ color: rgb(51, 64, 149);
/* oklch */ color: oklch(41.2% 0.139 272.2);
Tailwind
colors: {
  custom: {
    50: '#7674b5',
    500: '#334095',
    950: '#000000',
  },
}
SCSS
$custom: #334095;
$custom-light: #7674b5;
$custom-dark: #000000;
JSON
{
  "hex": "#334095",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 149
  },
  "hsl": {
    "h": 232.041,
    "s": 49,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41187,
    "c": 0.13939,
    "h": 272.2
  },
  "luminance": 0.06541
}

Semantic roles & 50–950 ramp

primary
#334095
secondary
#B7AD6C
accent
#C64FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334095

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

Preview Lab → · Contrast checker → · Palette generator →

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