#334CA2#334CA2

#334CA2 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.7% C 0.142 H 268.0°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#334CA2
RGBrgb(51, 76, 162)
HSLhsl(226, 52%, 42%)
HSVhsv(226, 69%, 64%)
CMYKcmyk(68.5%, 53.1%, 0%, 36.5%)
CIE-LABlab(34.96, 20.01, -49.47)
CIE-LCHlch(34.96, 53.37, 292.02°)
OKLaboklab(44.67% -0.005 -0.1421)
OKLCHoklch(44.67% 0.142 268)
XYZxyz(10.4690, 8.4803, 35.2606)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CA2 #A28933
analogous
#3384A2 #334CA2 #5133A2
triadic
#334CA2 #A2334C #4CA233
tetradic
#334CA2 #A23384 #A28933 #33A251
square
#334CA2 #A23384 #A28933 #33A251
split-complementary
#334CA2 #A25133 #84A233
monochromatic
#162045 #243673 #334CA2 #4C67C7 #7A8FD5

Accessibility & contrast

On white

7.79
#334CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#334CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CA2
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CA2#FFFFFF#000000##FFFFFF
##334CA21.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1458A5
Deuteranopia (green-blind)
#004DA0
Tritanopia (blue-blind)
#00606F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #334ca2;
/* rgb */ color: rgb(51, 76, 162);
/* oklch */ color: oklch(44.7% 0.142 268.0);
Tailwind
colors: {
  custom: {
    50: '#787dbe',
    500: '#334ca2',
    950: '#000000',
  },
}
SCSS
$custom: #334ca2;
$custom-light: #787dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#334ca2",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 162
  },
  "hsl": {
    "h": 226.486,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.44671,
    "c": 0.14222,
    "h": 268
  },
  "luminance": 0.08481
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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