#334693#334693

#334693 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.3% C 0.128 H 269.7°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#334693
RGBrgb(51, 70, 147)
HSLhsl(228, 48%, 39%)
HSVhsv(228, 65%, 58%)
CMYKcmyk(65.3%, 52.4%, 0%, 42.4%)
CIE-LABlab(32.24, 18.46, -44.80)
CIE-LCHlch(32.24, 48.46, 292.39°)
OKLaboklab(42.27% -0.0006 -0.1285)
OKLCHoklch(42.27% 0.128 269.7)
XYZxyz(8.8201, 7.1899, 28.5211)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334693 #938033
analogous
#337693 #334693 #503393
triadic
#334693 #933346 #469333
tetradic
#334693 #933376 #938033 #339350
square
#334693 #933376 #938033 #339350
split-complementary
#334693 #935033 #769333
monochromatic
#131B38 #233066 #334693 #455DBE #7284CE

Accessibility & contrast

On white

8.61
#334693 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#334693 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334693
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334693#FFFFFF#000000##FFFFFF
##3346931.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195096
Deuteranopia (green-blind)
#004891
Tritanopia (blue-blind)
#005865
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #334693;
/* rgb */ color: rgb(51, 70, 147);
/* oklch */ color: oklch(42.3% 0.128 269.7);
Tailwind
colors: {
  custom: {
    50: '#7579b3',
    500: '#334693',
    950: '#000000',
  },
}
SCSS
$custom: #334693;
$custom-light: #7579b3;
$custom-dark: #000000;
JSON
{
  "hex": "#334693",
  "rgb": {
    "r": 51,
    "g": 70,
    "b": 147
  },
  "hsl": {
    "h": 228.125,
    "s": 48.485,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42269,
    "c": 0.12847,
    "h": 269.7
  },
  "luminance": 0.07191
}

Semantic roles & 50–950 ramp

primary
#334693
secondary
#B6A76C
accent
#BD50D8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334693

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

Preview Lab → · Contrast checker → · Palette generator →

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