#334BAC#334BAC

#334BAC is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.3% C 0.158 H 268.8°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#334BAC
RGBrgb(51, 75, 172)
HSLhsl(228, 54%, 44%)
HSVhsv(228, 70%, 67%)
CMYKcmyk(70.3%, 56.4%, 0%, 32.5%)
CIE-LABlab(35.43, 24.37, -54.70)
CIE-LCHlch(35.43, 59.89, 294.02°)
OKLaboklab(45.25% -0.0034 -0.1575)
OKLCHoklch(45.25% 0.158 268.8)
XYZxyz(11.3252, 8.7134, 40.1067)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BAC #AC9433
analogous
#3387AC #334BAC #5733AC
triadic
#334BAC #AC334B #4BAC33
tetradic
#334BAC #AC3387 #AC9433 #33AC57
square
#334BAC #AC3387 #AC9433 #33AC57
split-complementary
#334BAC #AC5733 #87AC33
monochromatic
#17224E #25367D #334BAC #5169CB #8092D9

Accessibility & contrast

On white

7.66
#334BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#334BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334BAC
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BAC#FFFFFF#000000##FFFFFF
##334BAC1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AF
Deuteranopia (green-blind)
#004EAA
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #334bac;
/* rgb */ color: rgb(51, 75, 172);
/* oklch */ color: oklch(45.3% 0.158 268.8);
Tailwind
colors: {
  custom: {
    50: '#7a7cc5',
    500: '#334bac',
    950: '#000000',
  },
}
SCSS
$custom: #334bac;
$custom-light: #7a7cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#334bac",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 172
  },
  "hsl": {
    "h": 228.099,
    "s": 54.26,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45252,
    "c": 0.15756,
    "h": 268.8
  },
  "luminance": 0.08715
}

Semantic roles & 50–950 ramp

primary
#334BAC
secondary
#C2B478
accent
#C04ADE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #334BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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