#334892#334892

#334892 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.6% C 0.124 H 268.7°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#334892
RGBrgb(51, 72, 146)
HSLhsl(227, 48%, 39%)
HSVhsv(227, 65%, 57%)
CMYKcmyk(65.1%, 50.7%, 0%, 42.7%)
CIE-LABlab(32.73, 16.75, -43.40)
CIE-LCHlch(32.73, 46.52, 291.10°)
OKLaboklab(42.62% -0.0027 -0.1243)
OKLCHoklch(42.62% 0.124 268.7)
XYZxyz(8.8691, 7.4131, 28.1520)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334892 #927D33
analogous
#337792 #334892 #4D3392
triadic
#334892 #923348 #489233
tetradic
#334892 #923377 #927D33 #33924D
square
#334892 #923377 #927D33 #33924D
split-complementary
#334892 #924D33 #779233
monochromatic
#131B37 #233265 #334892 #445FBE #7286CE

Accessibility & contrast

On white

8.46
#334892 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#334892 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334892
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334892#FFFFFF#000000##FFFFFF
##3348921.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205195
Deuteranopia (green-blind)
#084990
Tritanopia (blue-blind)
#005966
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #334892;
/* rgb */ color: rgb(51, 72, 146);
/* oklch */ color: oklch(42.6% 0.124 268.7);
Tailwind
colors: {
  custom: {
    50: '#757ab2',
    500: '#334892',
    950: '#000000',
  },
}
SCSS
$custom: #334892;
$custom-light: #757ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#334892",
  "rgb": {
    "r": 51,
    "g": 72,
    "b": 146
  },
  "hsl": {
    "h": 226.737,
    "s": 48.223,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42622,
    "c": 0.12433,
    "h": 268.7
  },
  "luminance": 0.07414
}

Semantic roles & 50–950 ramp

primary
#334892
secondary
#B6A56B
accent
#BA50D8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334892

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

Preview Lab → · Contrast checker → · Palette generator →

#334892 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva