#334592#334592

#334592 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.0% C 0.128 H 270.1°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#334592
RGBrgb(51, 69, 146)
HSLhsl(229, 48%, 39%)
HSVhsv(229, 65%, 57%)
CMYKcmyk(65.1%, 52.7%, 0%, 42.7%)
CIE-LABlab(31.89, 18.76, -44.76)
CIE-LCHlch(31.89, 48.53, 292.74°)
OKLaboklab(41.98% 0.0003 -0.1283)
OKLCHoklch(41.98% 0.128 270.1)
XYZxyz(8.6799, 7.0346, 28.0890)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334592 #928033
analogous
#337492 #334592 #503392
triadic
#334592 #923345 #459233
tetradic
#334592 #923374 #928033 #339250
square
#334592 #923374 #928033 #339250
split-complementary
#334592 #925033 #749233
monochromatic
#131A37 #233065 #334592 #445BBE #7283CE

Accessibility & contrast

On white

8.72
#334592 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#334592 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334592
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334592#FFFFFF#000000##FFFFFF
##3345921.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174F95
Deuteranopia (green-blind)
#004790
Tritanopia (blue-blind)
#005764
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #334592;
/* rgb */ color: rgb(51, 69, 146);
/* oklch */ color: oklch(42.0% 0.128 270.1);
Tailwind
colors: {
  custom: {
    50: '#7578b2',
    500: '#334592',
    950: '#000000',
  },
}
SCSS
$custom: #334592;
$custom-light: #7578b2;
$custom-dark: #000000;
JSON
{
  "hex": "#334592",
  "rgb": {
    "r": 51,
    "g": 69,
    "b": 146
  },
  "hsl": {
    "h": 228.632,
    "s": 48.223,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41982,
    "c": 0.12835,
    "h": 270.1
  },
  "luminance": 0.07035
}

Semantic roles & 50–950 ramp

primary
#334592
secondary
#B6A86B
accent
#BE50D8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334592

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

Preview Lab → · Contrast checker → · Palette generator →

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