#334CBC#334CBC

#334CBC is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.8% C 0.178 H 268.8°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#334CBC
RGBrgb(51, 76, 188)
HSLhsl(229, 57%, 47%)
HSVhsv(229, 73%, 74%)
CMYKcmyk(72.9%, 59.6%, 0%, 26.3%)
CIE-LABlab(36.93, 29.61, -61.70)
CIE-LCHlch(36.93, 68.44, 295.64°)
OKLaboklab(46.77% -0.0037 -0.1781)
OKLCHoklch(46.77% 0.178 268.8)
XYZxyz(13.0237, 9.5022, 48.7149)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CBC #BCA333
analogous
#3391BC #334CBC #5F33BC
triadic
#334CBC #BC334C #4CBC33
tetradic
#334CBC #BC3391 #BCA333 #33BC5F
square
#334CBC #BC3391 #BCA333 #33BC5F
split-complementary
#334CBC #BC5F33 #91BC33
monochromatic
#19255C #26398C #334CBC #5A70D2 #8A9ADF

Accessibility & contrast

On white

7.24
#334CBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#334CBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CBC
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CBC#FFFFFF#000000##FFFFFF
##334CBC1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#0051BA
Tritanopia (blue-blind)
#00687C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #334cbc;
/* rgb */ color: rgb(51, 76, 188);
/* oklch */ color: oklch(46.8% 0.178 268.8);
Tailwind
colors: {
  custom: {
    50: '#7e7dd1',
    500: '#334cbc',
    950: '#000000',
  },
}
SCSS
$custom: #334cbc;
$custom-light: #7e7dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#334cbc",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 188
  },
  "hsl": {
    "h": 229.051,
    "s": 57.322,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46769,
    "c": 0.17812,
    "h": 268.8
  },
  "luminance": 0.09504
}

Semantic roles & 50–950 ramp

primary
#334CBC
secondary
#C9BC81
accent
#C547E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #334CBC

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

Preview Lab → · Contrast checker → · Palette generator →

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