#334094#334094

#334094 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.1% C 0.138 H 272.2°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#334094
RGBrgb(51, 64, 148)
HSLhsl(232, 49%, 39%)
HSVhsv(232, 66%, 58%)
CMYKcmyk(65.5%, 56.8%, 0%, 42%)
CIE-LABlab(30.66, 22.85, -47.96)
CIE-LCHlch(30.66, 53.12, 295.47°)
OKLaboklab(41.11% 0.0054 -0.1378)
OKLCHoklch(41.11% 0.138 272.2)
XYZxyz(8.5421, 6.5080, 28.8172)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334094 #948733
analogous
#337194 #334094 #573394
triadic
#334094 #943340 #409433
tetradic
#334094 #943371 #948733 #339457
square
#334094 #943371 #948733 #339457
split-complementary
#334094 #945733 #719433
monochromatic
#141939 #232C66 #334094 #4556BF #737FCF

Accessibility & contrast

On white

9.12
#334094 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#334094 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334094
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334094#FFFFFF#000000##FFFFFF
##3340941.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D97
Deuteranopia (green-blind)
#004492
Tritanopia (blue-blind)
#005463
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #334094;
/* rgb */ color: rgb(51, 64, 148);
/* oklch */ color: oklch(41.1% 0.138 272.2);
Tailwind
colors: {
  custom: {
    50: '#7674b4',
    500: '#334094',
    950: '#000000',
  },
}
SCSS
$custom: #334094;
$custom-light: #7674b4;
$custom-dark: #000000;
JSON
{
  "hex": "#334094",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 148
  },
  "hsl": {
    "h": 231.959,
    "s": 48.744,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41107,
    "c": 0.13794,
    "h": 272.2
  },
  "luminance": 0.06509
}

Semantic roles & 50–950 ramp

primary
#334094
secondary
#B7AD6C
accent
#C64FD8
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334094

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

Preview Lab → · Contrast checker → · Palette generator →

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