#323EA5#323EA5

#323EA5 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.1% C 0.165 H 272.1°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#323EA5
RGBrgb(50, 62, 165)
HSLhsl(234, 53%, 42%)
HSVhsv(234, 70%, 65%)
CMYKcmyk(69.7%, 62.4%, 0%, 35.3%)
CIE-LABlab(31.44, 30.20, -57.01)
CIE-LCHlch(31.44, 64.51, 297.92°)
OKLaboklab(42.1% 0.006 -0.1645)
OKLCHoklch(42.1% 0.165 272.1)
XYZxyz(9.8273, 6.8390, 36.3922)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#323EA5 #A59932
analogous
#3278A5 #323EA5 #6032A5
triadic
#323EA5 #A5323E #3EA532
tetradic
#323EA5 #A53278 #A59932 #32A560
square
#323EA5 #A53278 #A59932 #32A560
split-complementary
#323EA5 #A56032 #78A532
monochromatic
#161B47 #242C76 #323EA5 #4C59C9 #7B84D7

Accessibility & contrast

On white

8.87
#323EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#323EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #323EA5
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##323EA5#FFFFFF#000000##FFFFFF
##323EA51.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #323ea5;
/* rgb */ color: rgb(50, 62, 165);
/* oklch */ color: oklch(42.1% 0.165 272.1);
Tailwind
colors: {
  custom: {
    50: '#7973c1',
    500: '#323ea5',
    950: '#000000',
  },
}
SCSS
$custom: #323ea5;
$custom-light: #7973c1;
$custom-dark: #000000;
JSON
{
  "hex": "#323ea5",
  "rgb": {
    "r": 50,
    "g": 62,
    "b": 165
  },
  "hsl": {
    "h": 233.739,
    "s": 53.488,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42095,
    "c": 0.16458,
    "h": 272.1
  },
  "luminance": 0.0684
}

Semantic roles & 50–950 ramp

primary
#323EA5
secondary
#BFB873
accent
#CE4BDD
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #323EA5

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

Preview Lab → · Contrast checker → · Palette generator →

#323EA5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva