#334CA7#334CA7

#334CA7 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.1% C 0.149 H 268.2°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#334CA7
RGBrgb(51, 76, 167)
HSLhsl(227, 53%, 43%)
HSVhsv(227, 69%, 65%)
CMYKcmyk(69.5%, 54.5%, 0%, 34.5%)
CIE-LABlab(35.32, 21.86, -51.88)
CIE-LCHlch(35.32, 56.30, 292.85°)
OKLaboklab(45.06% -0.0046 -0.1492)
OKLCHoklch(45.06% 0.149 268.2)
XYZxyz(10.9223, 8.6616, 37.6480)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CA7 #A78E33
analogous
#3386A7 #334CA7 #5433A7
triadic
#334CA7 #A7334C #4CA733
tetradic
#334CA7 #A73386 #A78E33 #33A754
square
#334CA7 #A73386 #A78E33 #33A754
split-complementary
#334CA7 #A75433 #86A733
monochromatic
#162149 #253778 #334CA7 #4E69C9 #7D91D7

Accessibility & contrast

On white

7.68
#334CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#334CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CA7
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CA7#FFFFFF#000000##FFFFFF
##334CA71.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0659AA
Deuteranopia (green-blind)
#004EA5
Tritanopia (blue-blind)
#006272
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #334ca7;
/* rgb */ color: rgb(51, 76, 167);
/* oklch */ color: oklch(45.1% 0.149 268.2);
Tailwind
colors: {
  custom: {
    50: '#797dc2',
    500: '#334ca7',
    950: '#000000',
  },
}
SCSS
$custom: #334ca7;
$custom-light: #797dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#334ca7",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 167
  },
  "hsl": {
    "h": 227.069,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45058,
    "c": 0.14929,
    "h": 268.2
  },
  "luminance": 0.08663
}

Semantic roles & 50–950 ramp

primary
#334CA7
secondary
#C0B076
accent
#BD4BDD
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #334CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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