#334C97#334C97

#334C97 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.9% C 0.126 H 267.2°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#334C97
RGBrgb(51, 76, 151)
HSLhsl(225, 50%, 40%)
HSVhsv(225, 66%, 59%)
CMYKcmyk(66.2%, 49.7%, 0%, 40.8%)
CIE-LABlab(34.20, 15.92, -44.07)
CIE-LCHlch(34.20, 46.85, 289.87°)
OKLaboklab(43.85% -0.0062 -0.1262)
OKLCHoklch(43.85% 0.126 267.2)
XYZxyz(9.5337, 8.1062, 30.3344)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334C97 #977E33
analogous
#337E97 #334C97 #4C3397
triadic
#334C97 #97334C #4C9733
tetradic
#334C97 #97337E #977E33 #33974C
square
#334C97 #97337E #977E33 #33974C
split-complementary
#334C97 #974C33 #7E9733
monochromatic
#141E3C #243569 #334C97 #4765C1 #748BD0

Accessibility & contrast

On white

8.01
#334C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334C97
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334C97#FFFFFF#000000##FFFFFF
##334C971.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24559A
Deuteranopia (green-blind)
#0C4C95
Tritanopia (blue-blind)
#005D6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #334c97;
/* rgb */ color: rgb(51, 76, 151);
/* oklch */ color: oklch(43.9% 0.126 267.2);
Tailwind
colors: {
  custom: {
    50: '#767db6',
    500: '#334c97',
    950: '#000000',
  },
}
SCSS
$custom: #334c97;
$custom-light: #767db6;
$custom-dark: #000000;
JSON
{
  "hex": "#334c97",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 151
  },
  "hsl": {
    "h": 225,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.43851,
    "c": 0.12637,
    "h": 267.2
  },
  "luminance": 0.08107
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334C97

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

Preview Lab → · Contrast checker → · Palette generator →

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