#334DAA#334DAA

#334DAA is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.5% C 0.152 H 268.0°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#334DAA
RGBrgb(51, 77, 170)
HSLhsl(227, 54%, 43%)
HSVhsv(227, 70%, 67%)
CMYKcmyk(70%, 54.7%, 0%, 33.3%)
CIE-LABlab(35.82, 22.31, -52.88)
CIE-LCHlch(35.82, 57.39, 292.88°)
OKLaboklab(45.5% -0.0052 -0.1521)
OKLCHoklch(45.5% 0.152 268)
XYZxyz(11.2723, 8.9127, 39.1487)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334DAA #AA9033
analogous
#3388AA #334DAA #5433AA
triadic
#334DAA #AA334D #4DAA33
tetradic
#334DAA #AA3388 #AA9033 #33AA54
square
#334DAA #AA3388 #AA9033 #33AA54
split-complementary
#334DAA #AA5433 #88AA33
monochromatic
#17224C #25387B #334DAA #506BCA #7F92D9

Accessibility & contrast

On white

7.55
#334DAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#334DAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334DAA
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334DAA#FFFFFF#000000##FFFFFF
##334DAA1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#035AAD
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #334daa;
/* rgb */ color: rgb(51, 77, 170);
/* oklch */ color: oklch(45.5% 0.152 268.0);
Tailwind
colors: {
  custom: {
    50: '#7a7ec4',
    500: '#334daa',
    950: '#000000',
  },
}
SCSS
$custom: #334daa;
$custom-light: #7a7ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#334daa",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 170
  },
  "hsl": {
    "h": 226.891,
    "s": 53.846,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45498,
    "c": 0.15222,
    "h": 268
  },
  "luminance": 0.08914
}

Semantic roles & 50–950 ramp

primary
#334DAA
secondary
#C2B177
accent
#BD4BDD
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #334DAA

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

Preview Lab → · Contrast checker → · Palette generator →

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