#334BA6#334BA6

#334BA6 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.8% C 0.149 H 268.6°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#334BA6
RGBrgb(51, 75, 166)
HSLhsl(227, 53%, 43%)
HSVhsv(227, 69%, 65%)
CMYKcmyk(69.3%, 54.8%, 0%, 34.9%)
CIE-LABlab(34.98, 22.15, -51.85)
CIE-LCHlch(34.98, 56.38, 293.14°)
OKLaboklab(44.78% -0.0037 -0.1491)
OKLCHoklch(44.78% 0.149 268.6)
XYZxyz(10.7619, 8.4881, 37.1402)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BA6 #A68E33
analogous
#3385A6 #334BA6 #5433A6
triadic
#334BA6 #A6334B #4BA633
tetradic
#334BA6 #A63385 #A68E33 #33A654
square
#334BA6 #A63385 #A68E33 #33A654
split-complementary
#334BA6 #A65433 #85A633
monochromatic
#162148 #253677 #334BA6 #4E67C9 #7C8FD7

Accessibility & contrast

On white

7.78
#334BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#334BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334BA6
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BA6#FFFFFF#000000##FFFFFF
##334BA61.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0358A9
Deuteranopia (green-blind)
#004DA4
Tritanopia (blue-blind)
#006171
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #334ba6;
/* rgb */ color: rgb(51, 75, 166);
/* oklch */ color: oklch(44.8% 0.149 268.6);
Tailwind
colors: {
  custom: {
    50: '#797cc1',
    500: '#334ba6',
    950: '#000000',
  },
}
SCSS
$custom: #334ba6;
$custom-light: #797cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#334ba6",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 166
  },
  "hsl": {
    "h": 227.478,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.44775,
    "c": 0.14917,
    "h": 268.6
  },
  "luminance": 0.08489
}

Semantic roles & 50–950 ramp

primary
#334BA6
secondary
#C0B075
accent
#BE4BDC
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #334BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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