#334295#334295

#334295 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.6% C 0.137 H 271.5°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#334295
RGBrgb(51, 66, 149)
HSLhsl(231, 49%, 39%)
HSVhsv(231, 66%, 58%)
CMYKcmyk(65.8%, 55.7%, 0%, 41.6%)
CIE-LABlab(31.28, 21.87, -47.57)
CIE-LCHlch(31.28, 52.36, 294.69°)
OKLaboklab(41.59% 0.0035 -0.1367)
OKLCHoklch(41.59% 0.137 271.5)
XYZxyz(8.7364, 6.7694, 29.2742)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334295 #958633
analogous
#337395 #334295 #553395
triadic
#334295 #953342 #429533
tetradic
#334295 #953373 #958633 #339555
square
#334295 #953373 #958633 #339555
split-complementary
#334295 #955533 #739533
monochromatic
#141A3A #232E67 #334295 #4658C0 #7381CF

Accessibility & contrast

On white

8.92
#334295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#334295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334295
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334295#FFFFFF#000000##FFFFFF
##3342951.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034E98
Deuteranopia (green-blind)
#004593
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #334295;
/* rgb */ color: rgb(51, 66, 149);
/* oklch */ color: oklch(41.6% 0.137 271.5);
Tailwind
colors: {
  custom: {
    50: '#7676b5',
    500: '#334295',
    950: '#000000',
  },
}
SCSS
$custom: #334295;
$custom-light: #7676b5;
$custom-dark: #000000;
JSON
{
  "hex": "#334295",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 149
  },
  "hsl": {
    "h": 230.816,
    "s": 49,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41592,
    "c": 0.13672,
    "h": 271.5
  },
  "luminance": 0.0677
}

Semantic roles & 50–950 ramp

primary
#334295
secondary
#B7AC6C
accent
#C44FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334295

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

Preview Lab → · Contrast checker → · Palette generator →

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