#334395#334395

#334395 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.8% C 0.135 H 271.1°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#334395
RGBrgb(51, 67, 149)
HSLhsl(230, 49%, 39%)
HSVhsv(230, 66%, 58%)
CMYKcmyk(65.8%, 55%, 0%, 41.6%)
CIE-LABlab(31.55, 21.20, -47.13)
CIE-LCHlch(31.55, 51.68, 294.22°)
OKLaboklab(41.8% 0.0025 -0.1354)
OKLCHoklch(41.8% 0.135 271.1)
XYZxyz(8.7954, 6.8873, 29.2938)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334395 #958533
analogous
#337495 #334395 #543395
triadic
#334395 #953343 #439533
tetradic
#334395 #953374 #958533 #339554
square
#334395 #953374 #958533 #339554
split-complementary
#334395 #955433 #749533
monochromatic
#141A3A #232E67 #334395 #465AC0 #7382CF

Accessibility & contrast

On white

8.83
#334395 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#334395 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334395
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334395#FFFFFF#000000##FFFFFF
##3343951.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084F98
Deuteranopia (green-blind)
#004693
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #334395;
/* rgb */ color: rgb(51, 67, 149);
/* oklch */ color: oklch(41.8% 0.135 271.1);
Tailwind
colors: {
  custom: {
    50: '#7676b5',
    500: '#334395',
    950: '#000000',
  },
}
SCSS
$custom: #334395;
$custom-light: #7676b5;
$custom-dark: #000000;
JSON
{
  "hex": "#334395",
  "rgb": {
    "r": 51,
    "g": 67,
    "b": 149
  },
  "hsl": {
    "h": 230.204,
    "s": 49,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41797,
    "c": 0.13538,
    "h": 271.1
  },
  "luminance": 0.06888
}

Semantic roles & 50–950 ramp

primary
#334395
secondary
#B7AB6C
accent
#C24FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334395

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

Preview Lab → · Contrast checker → · Palette generator →

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