#334BAA#334BAA

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

Color values

HEX#334BAA
RGBrgb(51, 75, 170)
HSLhsl(228, 54%, 43%)
HSVhsv(228, 70%, 67%)
CMYKcmyk(70%, 55.9%, 0%, 33.3%)
CIE-LABlab(35.28, 23.63, -53.75)
CIE-LCHlch(35.28, 58.72, 293.73°)
OKLaboklab(45.09% -0.0035 -0.1547)
OKLCHoklch(45.09% 0.155 268.7)
XYZxyz(11.1345, 8.6371, 39.1028)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BAA #AA9233
analogous
#3386AA #334BAA #5633AA
triadic
#334BAA #AA334B #4BAA33
tetradic
#334BAA #AA3386 #AA9233 #33AA56
square
#334BAA #AA3386 #AA9233 #33AA56
split-complementary
#334BAA #AA5633 #86AA33
monochromatic
#17214C #25367B #334BAA #5069CA #7F91D9

Accessibility & contrast

On white

7.70
#334BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334BAA
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BAA#FFFFFF#000000##FFFFFF
##334BAA1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AD
Deuteranopia (green-blind)
#004EA8
Tritanopia (blue-blind)
#006273
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #334baa;
/* rgb */ color: rgb(51, 75, 170);
/* oklch */ color: oklch(45.1% 0.155 268.7);
Tailwind
colors: {
  custom: {
    50: '#7a7cc4',
    500: '#334baa',
    950: '#000000',
  },
}
SCSS
$custom: #334baa;
$custom-light: #7a7cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#334baa",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 170
  },
  "hsl": {
    "h": 227.899,
    "s": 53.846,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45092,
    "c": 0.15477,
    "h": 268.7
  },
  "luminance": 0.08638
}

Semantic roles & 50–950 ramp

primary
#334BAA
secondary
#C2B377
accent
#C04BDD
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #334BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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