#334CC3#334CC3

#334CC3 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.4% C 0.187 H 268.9°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#334CC3
RGBrgb(51, 76, 195)
HSLhsl(230, 59%, 48%)
HSVhsv(230, 74%, 76%)
CMYKcmyk(73.8%, 61%, 0%, 23.5%)
CIE-LABlab(37.50, 32.16, -64.87)
CIE-LCHlch(37.50, 72.41, 296.37°)
OKLaboklab(47.37% -0.0038 -0.1874)
OKLCHoklch(47.37% 0.187 268.9)
XYZxyz(13.7966, 9.8114, 52.7858)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CC3 #C3AA33
analogous
#3394C3 #334CC3 #6233C3
triadic
#334CC3 #C3334C #4CC333
tetradic
#334CC3 #C33394 #C3AA33 #33C362
square
#334CC3 #C33394 #C3AA33 #33C362
split-complementary
#334CC3 #C36233 #94C333
monochromatic
#1A2662 #263992 #334CC3 #5E73D5 #8F9DE2

Accessibility & contrast

On white

7.09
#334CC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#334CC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CC3
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CC3#FFFFFF#000000##FFFFFF
##334CC31.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334cc3;
/* rgb */ color: rgb(51, 76, 195);
/* oklch */ color: oklch(47.4% 0.187 268.9);
Tailwind
colors: {
  custom: {
    50: '#7f7dd6',
    500: '#334cc3',
    950: '#000000',
  },
}
SCSS
$custom: #334cc3;
$custom-light: #7f7dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#334cc3",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 195
  },
  "hsl": {
    "h": 229.583,
    "s": 58.537,
    "l": 48.235
  },
  "oklch": {
    "l": 0.47368,
    "c": 0.18742,
    "h": 268.9
  },
  "luminance": 0.09813
}

Semantic roles & 50–950 ramp

primary
#334CC3
secondary
#CCC086
accent
#C746E2
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #334CC3

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

Preview Lab → · Contrast checker → · Palette generator →

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