#334BA9#334BA9

#334BA9 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.0% C 0.153 H 268.7°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#334BA9
RGBrgb(51, 75, 169)
HSLhsl(228, 54%, 43%)
HSVhsv(228, 70%, 66%)
CMYKcmyk(69.8%, 55.6%, 0%, 33.7%)
CIE-LABlab(35.20, 23.26, -53.28)
CIE-LCHlch(35.20, 58.14, 293.59°)
OKLaboklab(45.01% -0.0036 -0.1533)
OKLCHoklch(45.01% 0.153 268.7)
XYZxyz(11.0403, 8.5994, 38.6065)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BA9 #A99133
analogous
#3386A9 #334BA9 #5633A9
triadic
#334BA9 #A9334B #4BA933
tetradic
#334BA9 #A93386 #A99133 #33A956
square
#334BA9 #A93386 #A99133 #33A956
split-complementary
#334BA9 #A95633 #86A933
monochromatic
#17214B #25367A #334BA9 #4F68CA #7E91D8

Accessibility & contrast

On white

7.72
#334BA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#334BA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334BA9
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BA9#FFFFFF#000000##FFFFFF
##334BA91.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AC
Deuteranopia (green-blind)
#004EA7
Tritanopia (blue-blind)
#006272
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #334ba9;
/* rgb */ color: rgb(51, 75, 169);
/* oklch */ color: oklch(45.0% 0.153 268.7);
Tailwind
colors: {
  custom: {
    50: '#797cc3',
    500: '#334ba9',
    950: '#000000',
  },
}
SCSS
$custom: #334ba9;
$custom-light: #797cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#334ba9",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 169
  },
  "hsl": {
    "h": 227.797,
    "s": 53.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45012,
    "c": 0.15338,
    "h": 268.7
  },
  "luminance": 0.08601
}

Semantic roles & 50–950 ramp

primary
#334BA9
secondary
#C1B277
accent
#BF4BDD
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #334BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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