#334BD4#334BD4

#334BD4 is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 48.7% C 0.211 H 269.0°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#334BD4
RGBrgb(51, 75, 212)
HSLhsl(231, 65%, 52%)
HSVhsv(231, 76%, 83%)
CMYKcmyk(75.9%, 64.6%, 0%, 16.9%)
CIE-LABlab(38.70, 38.90, -72.75)
CIE-LCHlch(38.70, 82.50, 298.13°)
OKLaboklab(48.7% -0.0037 -0.2105)
OKLCHoklch(48.7% 0.211 269)
XYZxyz(15.7609, 10.4877, 63.4683)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BD4 #D4BC33
analogous
#339CD4 #334BD4 #6C33D4
triadic
#334BD4 #D4334B #4BD433
tetradic
#334BD4 #D4339C #D4BC33 #33D46C
square
#334BD4 #D4339C #D4BC33 #33D46C
split-complementary
#334BD4 #D46C33 #9CD433
monochromatic
#182674 #2337A7 #334BD4 #6678DF #98A4E9

Accessibility & contrast

On white

6.78
#334BD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#334BD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #334BD4
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BD4#FFFFFF#000000##FFFFFF
##334BD41.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D8
Deuteranopia (green-blind)
#0054D1
Tritanopia (blue-blind)
#006F89
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #334bd4;
/* rgb */ color: rgb(51, 75, 212);
/* oklch */ color: oklch(48.7% 0.211 269.0);
Tailwind
colors: {
  custom: {
    50: '#837de2',
    500: '#334bd4',
    950: '#000000',
  },
}
SCSS
$custom: #334bd4;
$custom-light: #837de2;
$custom-dark: #000000;
JSON
{
  "hex": "#334bd4",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 212
  },
  "hsl": {
    "h": 231.056,
    "s": 65.182,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48699,
    "c": 0.21051,
    "h": 269
  },
  "luminance": 0.10489
}

Semantic roles & 50–950 ramp

primary
#334BD4
secondary
#D5CA8E
accent
#CF40E8
background
#F8F7FE
surface
#F0EEFC
border
#CBC9D5
text
#0D0916
muted
#7D7B84

Preview Lab

Preview with #334BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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