#334BA2#334BA2

#334BA2 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.5% C 0.144 H 268.4°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#334BA2
RGBrgb(51, 75, 162)
HSLhsl(227, 52%, 42%)
HSVhsv(227, 69%, 64%)
CMYKcmyk(68.5%, 53.7%, 0%, 36.5%)
CIE-LABlab(34.69, 20.67, -49.92)
CIE-LCHlch(34.69, 54.03, 292.49°)
OKLaboklab(44.46% -0.004 -0.1434)
OKLCHoklch(44.46% 0.144 268.4)
XYZxyz(10.4007, 8.3436, 35.2378)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BA2 #A28A33
analogous
#3383A2 #334BA2 #5333A2
triadic
#334BA2 #A2334B #4BA233
tetradic
#334BA2 #A23383 #A28A33 #33A253
square
#334BA2 #A23383 #A28A33 #33A253
split-complementary
#334BA2 #A25333 #83A233
monochromatic
#162045 #243573 #334BA2 #4C66C7 #7A8ED5

Accessibility & contrast

On white

7.87
#334BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#334BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334BA2
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BA2#FFFFFF#000000##FFFFFF
##334BA21.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1057A5
Deuteranopia (green-blind)
#004DA0
Tritanopia (blue-blind)
#00606F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #334ba2;
/* rgb */ color: rgb(51, 75, 162);
/* oklch */ color: oklch(44.5% 0.144 268.4);
Tailwind
colors: {
  custom: {
    50: '#787cbe',
    500: '#334ba2',
    950: '#000000',
  },
}
SCSS
$custom: #334ba2;
$custom-light: #787cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#334ba2",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 162
  },
  "hsl": {
    "h": 227.027,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.44463,
    "c": 0.14351,
    "h": 268.4
  },
  "luminance": 0.08345
}

Semantic roles & 50–950 ramp

primary
#334BA2
secondary
#BEAE73
accent
#BD4CDC
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #334BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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