#334CA6#334CA6

#334CA6 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 45.0% C 0.148 H 268.2°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#334CA6
RGBrgb(51, 76, 166)
HSLhsl(227, 53%, 43%)
HSVhsv(227, 69%, 65%)
CMYKcmyk(69.3%, 54.2%, 0%, 34.9%)
CIE-LABlab(35.25, 21.49, -51.41)
CIE-LCHlch(35.25, 55.72, 292.69°)
OKLaboklab(44.98% -0.0046 -0.1478)
OKLCHoklch(44.98% 0.148 268.2)
XYZxyz(10.8302, 8.6248, 37.1630)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CA6 #A68D33
analogous
#3385A6 #334CA6 #5433A6
triadic
#334CA6 #A6334C #4CA633
tetradic
#334CA6 #A63385 #A68D33 #33A654
square
#334CA6 #A63385 #A68D33 #33A654
split-complementary
#334CA6 #A65433 #85A633
monochromatic
#162148 #253777 #334CA6 #4E68C9 #7C90D7

Accessibility & contrast

On white

7.71
#334CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#334CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CA6
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CA6#FFFFFF#000000##FFFFFF
##334CA61.007.712.737.71
#FFFFFF7.711.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A58A9
Deuteranopia (green-blind)
#004EA4
Tritanopia (blue-blind)
#006271
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #334ca6;
/* rgb */ color: rgb(51, 76, 166);
/* oklch */ color: oklch(45.0% 0.148 268.2);
Tailwind
colors: {
  custom: {
    50: '#797dc1',
    500: '#334ca6',
    950: '#000000',
  },
}
SCSS
$custom: #334ca6;
$custom-light: #797dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#334ca6",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 166
  },
  "hsl": {
    "h": 226.957,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4498,
    "c": 0.14788,
    "h": 268.2
  },
  "luminance": 0.08626
}

Semantic roles & 50–950 ramp

primary
#334CA6
secondary
#C0AF75
accent
#BD4BDC
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #334CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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