#334695#334695

#334695 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.4% C 0.131 H 269.8°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#334695
RGBrgb(51, 70, 149)
HSLhsl(228, 49%, 39%)
HSVhsv(228, 66%, 58%)
CMYKcmyk(65.8%, 53%, 0%, 41.6%)
CIE-LABlab(32.38, 19.19, -45.79)
CIE-LCHlch(32.38, 49.65, 292.74°)
OKLaboklab(42.42% -0.0004 -0.1314)
OKLCHoklch(42.42% 0.131 269.8)
XYZxyz(8.9784, 7.2532, 29.3548)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334695 #958233
analogous
#337795 #334695 #513395
triadic
#334695 #953346 #469533
tetradic
#334695 #953377 #958233 #339551
square
#334695 #953377 #958233 #339551
split-complementary
#334695 #955133 #779533
monochromatic
#141B3A #233167 #334695 #465DC0 #7385CF

Accessibility & contrast

On white

8.57
#334695 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#334695 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334695
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334695#FFFFFF#000000##FFFFFF
##3346951.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165198
Deuteranopia (green-blind)
#004893
Tritanopia (blue-blind)
#005966
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #334695;
/* rgb */ color: rgb(51, 70, 149);
/* oklch */ color: oklch(42.4% 0.131 269.8);
Tailwind
colors: {
  custom: {
    50: '#7679b5',
    500: '#334695',
    950: '#000000',
  },
}
SCSS
$custom: #334695;
$custom-light: #7679b5;
$custom-dark: #000000;
JSON
{
  "hex": "#334695",
  "rgb": {
    "r": 51,
    "g": 70,
    "b": 149
  },
  "hsl": {
    "h": 228.367,
    "s": 49,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42421,
    "c": 0.13139,
    "h": 269.8
  },
  "luminance": 0.07254
}

Semantic roles & 50–950 ramp

primary
#334695
secondary
#B7A96C
accent
#BE4FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334695

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

Preview Lab → · Contrast checker → · Palette generator →

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