#334AA2#334AA2

#334AA2 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.3% C 0.145 H 268.8°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#334AA2
RGBrgb(51, 74, 162)
HSLhsl(228, 52%, 42%)
HSVhsv(228, 69%, 64%)
CMYKcmyk(68.5%, 54.3%, 0%, 36.5%)
CIE-LABlab(34.41, 21.33, -50.36)
CIE-LCHlch(34.41, 54.70, 292.96°)
OKLaboklab(44.26% -0.0031 -0.1448)
OKLCHoklch(44.26% 0.145 268.8)
XYZxyz(10.3334, 8.2090, 35.2153)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334AA2 #A28B33
analogous
#3382A2 #334AA2 #5433A2
triadic
#334AA2 #A2334A #4AA233
tetradic
#334AA2 #A23382 #A28B33 #33A254
square
#334AA2 #A23382 #A28B33 #33A254
split-complementary
#334AA2 #A25433 #82A233
monochromatic
#161F45 #243573 #334AA2 #4C65C7 #7A8DD5

Accessibility & contrast

On white

7.95
#334AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#334AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334AA2
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334AA2#FFFFFF#000000##FFFFFF
##334AA21.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A56A5
Deuteranopia (green-blind)
#004CA0
Tritanopia (blue-blind)
#005F6E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #334aa2;
/* rgb */ color: rgb(51, 74, 162);
/* oklch */ color: oklch(44.3% 0.145 268.8);
Tailwind
colors: {
  custom: {
    50: '#787cbe',
    500: '#334aa2',
    950: '#000000',
  },
}
SCSS
$custom: #334aa2;
$custom-light: #787cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#334aa2",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 162
  },
  "hsl": {
    "h": 227.568,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.44256,
    "c": 0.1448,
    "h": 268.8
  },
  "luminance": 0.0821
}

Semantic roles & 50–950 ramp

primary
#334AA2
secondary
#BEAE73
accent
#BE4CDC
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #334AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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