#3334B5#3334B5

#3334B5 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 42.0% C 0.197 H 273.6°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#3334B5
RGBrgb(51, 52, 181)
HSLhsl(240, 56%, 45%)
HSVhsv(240, 72%, 71%)
CMYKcmyk(71.8%, 71.3%, 0%, 29%)
CIE-LABlab(30.63, 42.17, -67.90)
CIE-LCHlch(30.63, 79.93, 301.84°)
OKLaboklab(41.97% 0.0124 -0.1964)
OKLCHoklch(41.97% 0.197 273.6)
XYZxyz(10.9309, 6.4949, 44.3847)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3334B5 #B5B433
analogous
#3375B5 #3334B5 #7333B5
triadic
#3334B5 #B53334 #34B533
tetradic
#3334B5 #B53375 #B5B433 #33B573
square
#3334B5 #B53375 #B5B433 #33B573
split-complementary
#3334B5 #B57333 #75B533
monochromatic
#181956 #262685 #3334B5 #5657CF #8686DD

Accessibility & contrast

On white

9.13
#3334B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#3334B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3334B5
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3334B5#FFFFFF#000000##FFFFFF
##3334B51.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB9
Deuteranopia (green-blind)
#0042B3
Tritanopia (blue-blind)
#005871
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3334b5;
/* rgb */ color: rgb(51, 52, 181);
/* oklch */ color: oklch(42.0% 0.197 273.6);
Tailwind
colors: {
  custom: {
    50: '#7e6dcc',
    500: '#3334b5',
    950: '#000000',
  },
}
SCSS
$custom: #3334b5;
$custom-light: #7e6dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3334b5",
  "rgb": {
    "r": 51,
    "g": 52,
    "b": 181
  },
  "hsl": {
    "h": 239.538,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.41968,
    "c": 0.19675,
    "h": 273.6
  },
  "luminance": 0.06496
}

Semantic roles & 50–950 ramp

primary
#3334B5
secondary
#C6C67D
accent
#DE48DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #3334B5

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

Preview Lab → · Contrast checker → · Palette generator →

#3334B5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva