#334CA9#334CA9

#334CA9 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.2% C 0.152 H 268.3°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#334CA9
RGBrgb(51, 76, 169)
HSLhsl(227, 54%, 43%)
HSVhsv(227, 70%, 66%)
CMYKcmyk(69.8%, 55%, 0%, 33.7%)
CIE-LABlab(35.47, 22.60, -52.84)
CIE-LCHlch(35.47, 57.47, 293.16°)
OKLaboklab(45.22% -0.0044 -0.152)
OKLCHoklch(45.22% 0.152 268.3)
XYZxyz(11.1086, 8.7362, 38.6292)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CA9 #A99033
analogous
#3387A9 #334CA9 #5533A9
triadic
#334CA9 #A9334C #4CA933
tetradic
#334CA9 #A93387 #A99033 #33A955
square
#334CA9 #A93387 #A99033 #33A955
split-complementary
#334CA9 #A95533 #87A933
monochromatic
#17224B #25377A #334CA9 #4F69CA #7E91D8

Accessibility & contrast

On white

7.64
#334CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334CA9
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CA9#FFFFFF#000000##FFFFFF
##334CA91.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AC
Deuteranopia (green-blind)
#004EA7
Tritanopia (blue-blind)
#006273
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #334ca9;
/* rgb */ color: rgb(51, 76, 169);
/* oklch */ color: oklch(45.2% 0.152 268.3);
Tailwind
colors: {
  custom: {
    50: '#797dc3',
    500: '#334ca9',
    950: '#000000',
  },
}
SCSS
$custom: #334ca9;
$custom-light: #797dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#334ca9",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 169
  },
  "hsl": {
    "h": 227.288,
    "s": 53.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45215,
    "c": 0.15209,
    "h": 268.3
  },
  "luminance": 0.08737
}

Semantic roles & 50–950 ramp

primary
#334CA9
secondary
#C1B177
accent
#BE4BDD
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #334CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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