#334C96#334C96

#334C96 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.8% C 0.125 H 267.1°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#334C96
RGBrgb(51, 76, 150)
HSLhsl(225, 49%, 39%)
HSVhsv(225, 66%, 59%)
CMYKcmyk(66%, 49.3%, 0%, 41.2%)
CIE-LABlab(34.14, 15.55, -43.57)
CIE-LCHlch(34.14, 46.26, 289.64°)
OKLaboklab(43.78% -0.0063 -0.1247)
OKLCHoklch(43.78% 0.125 267.1)
XYZxyz(9.4528, 8.0738, 29.9085)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334C96 #967D33
analogous
#337E96 #334C96 #4B3396
triadic
#334C96 #96334C #4C9633
tetradic
#334C96 #96337E #967D33 #33964B
square
#334C96 #96337E #967D33 #33964B
split-complementary
#334C96 #964B33 #7E9633
monochromatic
#141E3B #233568 #334C96 #4665C0 #748BD0

Accessibility & contrast

On white

8.03
#334C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#334C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334C96
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334C96#FFFFFF#000000##FFFFFF
##334C961.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255599
Deuteranopia (green-blind)
#0F4C94
Tritanopia (blue-blind)
#005D6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #334c96;
/* rgb */ color: rgb(51, 76, 150);
/* oklch */ color: oklch(43.8% 0.125 267.1);
Tailwind
colors: {
  custom: {
    50: '#767db5',
    500: '#334c96',
    950: '#000000',
  },
}
SCSS
$custom: #334c96;
$custom-light: #767db5;
$custom-dark: #000000;
JSON
{
  "hex": "#334c96",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 150
  },
  "hsl": {
    "h": 224.848,
    "s": 49.254,
    "l": 39.412
  },
  "oklch": {
    "l": 0.43778,
    "c": 0.12491,
    "h": 267.1
  },
  "luminance": 0.08075
}

Semantic roles & 50–950 ramp

primary
#334C96
secondary
#B8A56D
accent
#B64FD9
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334C96

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

Preview Lab → · Contrast checker → · Palette generator →

#334C96 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva