#332FAF#332FAF

#332FAF is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.6% C 0.194 H 274.8°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#332FAF
RGBrgb(51, 47, 175)
HSLhsl(242, 58%, 44%)
HSVhsv(242, 73%, 69%)
CMYKcmyk(70.9%, 73.1%, 0%, 31.4%)
CIE-LABlab(28.98, 43.07, -67.03)
CIE-LCHlch(28.98, 79.68, 302.72°)
OKLaboklab(40.61% 0.0162 -0.1938)
OKLCHoklch(40.61% 0.194 274.8)
XYZxyz(10.1171, 5.8310, 41.1415)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FAF #ABAF2F
analogous
#2F6BAF #332FAF #732FAF
triadic
#332FAF #AF332F #2FAF33
tetradic
#332FAF #AF2F6B #ABAF2F #2FAF73
square
#332FAF #AF2F6B #ABAF2F #2FAF73
split-complementary
#332FAF #AF732F #6BAF2F
monochromatic
#17154F #25227F #332FAF #504CCF #7F7CDC

Accessibility & contrast

On white

9.69
#332FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#332FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332FAF
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FAF#FFFFFF#000000##FFFFFF
##332FAF1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#003EAD
Tritanopia (blue-blind)
#00536C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #332faf;
/* rgb */ color: rgb(51, 47, 175);
/* oklch */ color: oklch(40.6% 0.194 274.8);
Tailwind
colors: {
  custom: {
    50: '#7d69c8',
    500: '#332faf',
    950: '#000000',
  },
}
SCSS
$custom: #332faf;
$custom-light: #7d69c8;
$custom-dark: #000000;
JSON
{
  "hex": "#332faf",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 241.875,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40613,
    "c": 0.19449,
    "h": 274.8
  },
  "luminance": 0.05832
}

Semantic roles & 50–950 ramp

primary
#332FAF
secondary
#C2C475
accent
#E147DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332FAF

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

Preview Lab → · Contrast checker → · Palette generator →

#332FAF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva