#3334B3#3334B3

#3334B3 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.8% C 0.194 H 273.7°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#3334B3
RGBrgb(51, 52, 179)
HSLhsl(240, 56%, 45%)
HSVhsv(240, 72%, 70%)
CMYKcmyk(71.5%, 70.9%, 0%, 29.8%)
CIE-LABlab(30.43, 41.49, -67.03)
CIE-LCHlch(30.43, 78.83, 301.76°)
OKLaboklab(41.77% 0.0127 -0.1938)
OKLCHoklch(41.77% 0.194 273.7)
XYZxyz(10.7272, 6.4134, 43.3117)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3334B3 #B3B233
analogous
#3374B3 #3334B3 #7233B3
triadic
#3334B3 #B33334 #34B333
tetradic
#3334B3 #B33374 #B3B233 #33B372
square
#3334B3 #B33374 #B3B233 #33B372
split-complementary
#3334B3 #B37233 #74B333
monochromatic
#181854 #252683 #3334B3 #5556CE #8485DC

Accessibility & contrast

On white

9.20
#3334B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#3334B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3334B3
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3334B3#FFFFFF#000000##FFFFFF
##3334B31.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#0042B1
Tritanopia (blue-blind)
#005770
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3334b3;
/* rgb */ color: rgb(51, 52, 179);
/* oklch */ color: oklch(41.8% 0.194 273.7);
Tailwind
colors: {
  custom: {
    50: '#7e6ccb',
    500: '#3334b3',
    950: '#000000',
  },
}
SCSS
$custom: #3334b3;
$custom-light: #7e6ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#3334b3",
  "rgb": {
    "r": 51,
    "g": 52,
    "b": 179
  },
  "hsl": {
    "h": 239.531,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.41769,
    "c": 0.19424,
    "h": 273.7
  },
  "luminance": 0.06414
}

Semantic roles & 50–950 ramp

primary
#3334B3
secondary
#C6C57C
accent
#DE49DF
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3334B3

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

Preview Lab → · Contrast checker → · Palette generator →

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