#332895#332895

#332895 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.169 H 278.7°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#332895
RGBrgb(51, 40, 149)
HSLhsl(246, 58%, 37%)
HSVhsv(246, 73%, 58%)
CMYKcmyk(65.8%, 73.2%, 0%, 41.6%)
CIE-LABlab(24.92, 38.51, -57.94)
CIE-LCHlch(24.92, 69.57, 303.61°)
OKLaboklab(36.94% 0.0255 -0.1672)
OKLCHoklch(36.94% 0.169 278.7)
XYZxyz(7.5471, 4.3907, 28.8777)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332895 #8A9528
analogous
#285495 #332895 #6A2895
triadic
#332895 #953328 #289533
tetradic
#332895 #952854 #8A9528 #28956A
square
#332895 #952854 #8A9528 #28956A
split-complementary
#332895 #956A28 #549528
monochromatic
#120E35 #221B65 #332895 #4435C5 #6E62D5

Accessibility & contrast

On white

11.18
#332895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#332895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332895
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332895#FFFFFF#000000##FFFFFF
##3328951.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#003793
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #332895;
/* rgb */ color: rgb(51, 40, 149);
/* oklch */ color: oklch(36.9% 0.169 278.7);
Tailwind
colors: {
  custom: {
    50: '#7864b5',
    500: '#332895',
    950: '#000000',
  },
}
SCSS
$custom: #332895;
$custom-light: #7864b5;
$custom-dark: #000000;
JSON
{
  "hex": "#332895",
  "rgb": {
    "r": 51,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 246.055,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36937,
    "c": 0.16917,
    "h": 278.7
  },
  "luminance": 0.04391
}

Semantic roles & 50–950 ramp

primary
#332895
secondary
#B1BB5E
accent
#E147D1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #332895

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

Preview Lab → · Contrast checker → · Palette generator →

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