#334DA5#334DA5

#334DA5 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.1% C 0.145 H 267.8°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#334DA5
RGBrgb(51, 77, 165)
HSLhsl(226, 53%, 42%)
HSVhsv(226, 69%, 65%)
CMYKcmyk(69.1%, 53.3%, 0%, 35.3%)
CIE-LABlab(35.45, 20.46, -50.48)
CIE-LCHlch(35.45, 54.47, 292.06°)
OKLaboklab(45.11% -0.0056 -0.1451)
OKLCHoklch(45.11% 0.145 267.8)
XYZxyz(10.8083, 8.7271, 36.7049)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334DA5 #A58B33
analogous
#3386A5 #334DA5 #5233A5
triadic
#334DA5 #A5334D #4DA533
tetradic
#334DA5 #A53386 #A58B33 #33A552
square
#334DA5 #A53386 #A58B33 #33A552
split-complementary
#334DA5 #A55233 #86A533
monochromatic
#162148 #253776 #334DA5 #4D69C8 #7C91D6

Accessibility & contrast

On white

7.65
#334DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#334DA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334DA5
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334DA5#FFFFFF#000000##FFFFFF
##334DA51.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1259A8
Deuteranopia (green-blind)
#004EA3
Tritanopia (blue-blind)
#006271
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #334da5;
/* rgb */ color: rgb(51, 77, 165);
/* oklch */ color: oklch(45.1% 0.145 267.8);
Tailwind
colors: {
  custom: {
    50: '#797ec0',
    500: '#334da5',
    950: '#000000',
  },
}
SCSS
$custom: #334da5;
$custom-light: #797ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#334da5",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 165
  },
  "hsl": {
    "h": 226.316,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4511,
    "c": 0.14518,
    "h": 267.8
  },
  "luminance": 0.08728
}

Semantic roles & 50–950 ramp

primary
#334DA5
secondary
#BFAE75
accent
#BB4CDC
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #334DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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