#332BAF#332BAF

#332BAF is a dark, vivid blue. Relative luminance 0.055; OKLCH L 40.0% C 0.198 H 275.3°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#332BAF
RGBrgb(51, 43, 175)
HSLhsl(244, 61%, 43%)
HSVhsv(244, 75%, 69%)
CMYKcmyk(70.9%, 75.4%, 0%, 31.4%)
CIE-LABlab(28.18, 45.32, -68.35)
CIE-LCHlch(28.18, 82.01, 303.54°)
OKLaboklab(40.05% 0.0183 -0.1976)
OKLCHoklch(40.05% 0.198 275.3)
XYZxyz(9.9644, 5.5258, 41.0906)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332BAF #A7AF2B
analogous
#2B65AF #332BAF #752BAF
triadic
#332BAF #AF332B #2BAF33
tetradic
#332BAF #AF2B65 #A7AF2B #2BAF75
square
#332BAF #AF2B65 #A7AF2B #2BAF75
split-complementary
#332BAF #AF752B #65AF2B
monochromatic
#16134D #251F7E #332BAF #4E46D1 #7D77DE

Accessibility & contrast

On white

9.97
#332BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#332BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332BAF
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332BAF#FFFFFF#000000##FFFFFF
##332BAF1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B3
Deuteranopia (green-blind)
#003CAD
Tritanopia (blue-blind)
#00516B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #332baf;
/* rgb */ color: rgb(51, 43, 175);
/* oklch */ color: oklch(40.0% 0.198 275.3);
Tailwind
colors: {
  custom: {
    50: '#7d67c8',
    500: '#332baf',
    950: '#000000',
  },
}
SCSS
$custom: #332baf;
$custom-light: #7d67c8;
$custom-dark: #000000;
JSON
{
  "hex": "#332baf",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 243.636,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.40046,
    "c": 0.19848,
    "h": 275.3
  },
  "luminance": 0.05527
}

Semantic roles & 50–950 ramp

primary
#332BAF
secondary
#C0C570
accent
#E444DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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