#334DA8#334DA8

#334DA8 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.3% C 0.149 H 267.9°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#334DA8
RGBrgb(51, 77, 168)
HSLhsl(227, 53%, 43%)
HSVhsv(227, 70%, 66%)
CMYKcmyk(69.6%, 54.2%, 0%, 34.1%)
CIE-LABlab(35.67, 21.57, -51.92)
CIE-LCHlch(35.67, 56.23, 292.56°)
OKLaboklab(45.34% -0.0054 -0.1493)
OKLCHoklch(45.34% 0.149 267.9)
XYZxyz(11.0846, 8.8376, 38.1599)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334DA8 #A88E33
analogous
#3387A8 #334DA8 #5433A8
triadic
#334DA8 #A8334D #4DA833
tetradic
#334DA8 #A83387 #A88E33 #33A854
square
#334DA8 #A83387 #A88E33 #33A854
split-complementary
#334DA8 #A85433 #87A833
monochromatic
#16224A #253779 #334DA8 #4F6AC9 #7E92D8

Accessibility & contrast

On white

7.59
#334DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#334DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334DA8
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334DA8#FFFFFF#000000##FFFFFF
##334DA81.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A59AB
Deuteranopia (green-blind)
#004FA6
Tritanopia (blue-blind)
#006373
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #334da8;
/* rgb */ color: rgb(51, 77, 168);
/* oklch */ color: oklch(45.3% 0.149 267.9);
Tailwind
colors: {
  custom: {
    50: '#797ec2',
    500: '#334da8',
    950: '#000000',
  },
}
SCSS
$custom: #334da8;
$custom-light: #797ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#334da8",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 168
  },
  "hsl": {
    "h": 226.667,
    "s": 53.425,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45342,
    "c": 0.14942,
    "h": 267.9
  },
  "luminance": 0.08839
}

Semantic roles & 50–950 ramp

primary
#334DA8
secondary
#C1B076
accent
#BC4BDD
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #334DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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