#334BBC#334BBC

#334BBC is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.6% C 0.179 H 269.0°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#334BBC
RGBrgb(51, 75, 188)
HSLhsl(229, 57%, 47%)
HSVhsv(229, 73%, 74%)
CMYKcmyk(72.9%, 60.1%, 0%, 26.3%)
CIE-LABlab(36.68, 30.26, -62.12)
CIE-LCHlch(36.68, 69.10, 295.97°)
OKLaboklab(46.58% -0.003 -0.1793)
OKLCHoklch(46.58% 0.179 269)
XYZxyz(12.9553, 9.3654, 48.6921)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BBC #BCA433
analogous
#3390BC #334BBC #6033BC
triadic
#334BBC #BC334B #4BBC33
tetradic
#334BBC #BC3390 #BCA433 #33BC60
square
#334BBC #BC3390 #BCA433 #33BC60
split-complementary
#334BBC #BC6033 #90BC33
monochromatic
#19255C #26388C #334BBC #5A6FD2 #8A99DF

Accessibility & contrast

On white

7.31
#334BBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#334BBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334BBC
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BBC#FFFFFF#000000##FFFFFF
##334BBC1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334bbc;
/* rgb */ color: rgb(51, 75, 188);
/* oklch */ color: oklch(46.6% 0.179 269.0);
Tailwind
colors: {
  custom: {
    50: '#7e7dd1',
    500: '#334bbc',
    950: '#000000',
  },
}
SCSS
$custom: #334bbc;
$custom-light: #7e7dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#334bbc",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 188
  },
  "hsl": {
    "h": 229.489,
    "s": 57.322,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4658,
    "c": 0.17934,
    "h": 269
  },
  "luminance": 0.09367
}

Semantic roles & 50–950 ramp

primary
#334BBC
secondary
#C9BD81
accent
#C647E1
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #334BBC

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

Preview Lab → · Contrast checker → · Palette generator →

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