#334AAF#334AAF

#334AAF is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.3% C 0.163 H 269.1°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#334AAF
RGBrgb(51, 74, 175)
HSLhsl(229, 55%, 44%)
HSVhsv(229, 71%, 69%)
CMYKcmyk(70.9%, 57.7%, 0%, 31.4%)
CIE-LABlab(35.39, 26.14, -56.54)
CIE-LCHlch(35.39, 62.29, 294.81°)
OKLaboklab(45.3% -0.0025 -0.1629)
OKLCHoklch(45.3% 0.163 269.1)
XYZxyz(11.5492, 8.6954, 41.6188)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334AAF #AF9833
analogous
#3388AF #334AAF #5A33AF
triadic
#334AAF #AF334A #4AAF33
tetradic
#334AAF #AF3388 #AF9833 #33AF5A
square
#334AAF #AF3388 #AF9833 #33AF5A
split-complementary
#334AAF #AF5A33 #88AF33
monochromatic
#172250 #253680 #334AAF #5269CD #8292DB

Accessibility & contrast

On white

7.67
#334AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#334AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334AAF
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334AAF#FFFFFF#000000##FFFFFF
##334AAF1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#006375
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #334aaf;
/* rgb */ color: rgb(51, 74, 175);
/* oklch */ color: oklch(45.3% 0.163 269.1);
Tailwind
colors: {
  custom: {
    50: '#7b7cc8',
    500: '#334aaf',
    950: '#000000',
  },
}
SCSS
$custom: #334aaf;
$custom-light: #7b7cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#334aaf",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 175
  },
  "hsl": {
    "h": 228.871,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45298,
    "c": 0.16296,
    "h": 269.1
  },
  "luminance": 0.08697
}

Semantic roles & 50–950 ramp

primary
#334AAF
secondary
#C4B67A
accent
#C34ADE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #334AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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