#334BC3#334BC3

#334BC3 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.2% C 0.189 H 269.1°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#334BC3
RGBrgb(51, 75, 195)
HSLhsl(230, 59%, 48%)
HSVhsv(230, 74%, 76%)
CMYKcmyk(73.8%, 61.5%, 0%, 23.5%)
CIE-LABlab(37.25, 32.80, -65.28)
CIE-LCHlch(37.25, 73.06, 296.68°)
OKLaboklab(47.18% -0.0031 -0.1886)
OKLCHoklch(47.18% 0.189 269.1)
XYZxyz(13.7283, 9.6746, 52.7631)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BC3 #C3AB33
analogous
#3393C3 #334BC3 #6333C3
triadic
#334BC3 #C3334B #4BC333
tetradic
#334BC3 #C33393 #C3AB33 #33C363
square
#334BC3 #C33393 #C3AB33 #33C363
split-complementary
#334BC3 #C36333 #93C333
monochromatic
#1A2662 #263892 #334BC3 #5E72D5 #8F9DE2

Accessibility & contrast

On white

7.15
#334BC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#334BC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334BC3
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BC3#FFFFFF#000000##FFFFFF
##334BC31.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334bc3;
/* rgb */ color: rgb(51, 75, 195);
/* oklch */ color: oklch(47.2% 0.189 269.1);
Tailwind
colors: {
  custom: {
    50: '#7f7dd6',
    500: '#334bc3',
    950: '#000000',
  },
}
SCSS
$custom: #334bc3;
$custom-light: #7f7dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#334bc3",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 195
  },
  "hsl": {
    "h": 230,
    "s": 58.537,
    "l": 48.235
  },
  "oklch": {
    "l": 0.47183,
    "c": 0.18862,
    "h": 269.1
  },
  "luminance": 0.09676
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334BC3

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

Preview Lab → · Contrast checker → · Palette generator →

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