#334CA8#334CA8

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

Color values

HEX#334CA8
RGBrgb(51, 76, 168)
HSLhsl(227, 53%, 43%)
HSVhsv(227, 70%, 66%)
CMYKcmyk(69.6%, 54.8%, 0%, 34.1%)
CIE-LABlab(35.40, 22.23, -52.36)
CIE-LCHlch(35.40, 56.89, 293.00°)
OKLaboklab(45.14% -0.0045 -0.1506)
OKLCHoklch(45.14% 0.151 268.3)
XYZxyz(11.0151, 8.6988, 38.1367)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CA8 #A88F33
analogous
#3387A8 #334CA8 #5433A8
triadic
#334CA8 #A8334C #4CA833
tetradic
#334CA8 #A83387 #A88F33 #33A854
square
#334CA8 #A83387 #A88F33 #33A854
split-complementary
#334CA8 #A85433 #87A833
monochromatic
#16224A #253779 #334CA8 #4F69C9 #7E91D8

Accessibility & contrast

On white

7.66
#334CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334CA8
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CA8#FFFFFF#000000##FFFFFF
##334CA81.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0359AB
Deuteranopia (green-blind)
#004EA6
Tritanopia (blue-blind)
#006272
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #334ca8;
/* rgb */ color: rgb(51, 76, 168);
/* oklch */ color: oklch(45.1% 0.151 268.3);
Tailwind
colors: {
  custom: {
    50: '#797dc2',
    500: '#334ca8',
    950: '#000000',
  },
}
SCSS
$custom: #334ca8;
$custom-light: #797dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#334ca8",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 168
  },
  "hsl": {
    "h": 227.179,
    "s": 53.425,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45137,
    "c": 0.1507,
    "h": 268.3
  },
  "luminance": 0.087
}

Semantic roles & 50–950 ramp

primary
#334CA8
secondary
#C1B176
accent
#BE4BDD
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #334CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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