#334CC2#334CC2

#334CC2 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.3% C 0.186 H 268.8°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#334CC2
RGBrgb(51, 76, 194)
HSLhsl(230, 58%, 48%)
HSVhsv(230, 74%, 76%)
CMYKcmyk(73.7%, 60.8%, 0%, 23.9%)
CIE-LABlab(37.42, 31.80, -64.42)
CIE-LCHlch(37.42, 71.84, 296.27°)
OKLaboklab(47.28% -0.0037 -0.1861)
OKLCHoklch(47.28% 0.186 268.8)
XYZxyz(13.6839, 9.7663, 52.1924)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CC2 #C2A933
analogous
#3394C2 #334CC2 #6133C2
triadic
#334CC2 #C2334C #4CC233
tetradic
#334CC2 #C23394 #C2A933 #33C261
square
#334CC2 #C23394 #C2A933 #33C261
split-complementary
#334CC2 #C26133 #94C233
monochromatic
#1A2661 #263992 #334CC2 #5E72D5 #8E9DE1

Accessibility & contrast

On white

7.11
#334CC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#334CC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CC2
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CC2#FFFFFF#000000##FFFFFF
##334CC21.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#0052C0
Tritanopia (blue-blind)
#006A80
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #334cc2;
/* rgb */ color: rgb(51, 76, 194);
/* oklch */ color: oklch(47.3% 0.186 268.8);
Tailwind
colors: {
  custom: {
    50: '#7f7dd5',
    500: '#334cc2',
    950: '#000000',
  },
}
SCSS
$custom: #334cc2;
$custom-light: #7f7dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#334cc2",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 194
  },
  "hsl": {
    "h": 229.51,
    "s": 58.367,
    "l": 48.039
  },
  "oklch": {
    "l": 0.47282,
    "c": 0.1861,
    "h": 268.8
  },
  "luminance": 0.09768
}

Semantic roles & 50–950 ramp

primary
#334CC2
secondary
#CCBF85
accent
#C646E2
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #334CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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