#334FBC#334FBC

#334FBC is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.3% C 0.174 H 268.0°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#334FBC
RGBrgb(51, 79, 188)
HSLhsl(228, 57%, 47%)
HSVhsv(228, 73%, 74%)
CMYKcmyk(72.9%, 58%, 0%, 26.3%)
CIE-LABlab(37.71, 27.66, -60.44)
CIE-LCHlch(37.71, 66.47, 294.59°)
OKLaboklab(47.35% -0.006 -0.1743)
OKLCHoklch(47.35% 0.174 268)
XYZxyz(13.2352, 9.9252, 48.7854)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FBC #BCA033
analogous
#3394BC #334FBC #5C33BC
triadic
#334FBC #BC334F #4FBC33
tetradic
#334FBC #BC3394 #BCA033 #33BC5C
square
#334FBC #BC3394 #BCA033 #33BC5C
split-complementary
#334FBC #BC5C33 #94BC33
monochromatic
#19275C #263B8C #334FBC #5A73D2 #8A9CDF

Accessibility & contrast

On white

7.03
#334FBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#334FBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334FBC
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FBC#FFFFFF#000000##FFFFFF
##334FBC1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC0
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#006A7E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #334fbc;
/* rgb */ color: rgb(51, 79, 188);
/* oklch */ color: oklch(47.3% 0.174 268.0);
Tailwind
colors: {
  custom: {
    50: '#7d80d1',
    500: '#334fbc',
    950: '#000000',
  },
}
SCSS
$custom: #334fbc;
$custom-light: #7d80d1;
$custom-dark: #000000;
JSON
{
  "hex": "#334fbc",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 188
  },
  "hsl": {
    "h": 227.737,
    "s": 57.322,
    "l": 46.863
  },
  "oklch": {
    "l": 0.47347,
    "c": 0.17444,
    "h": 268
  },
  "luminance": 0.09927
}

Semantic roles & 50–950 ramp

primary
#334FBC
secondary
#C9BB81
accent
#C147E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #334FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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