#3238A2#3238A2

#3238A2 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.7% C 0.168 H 273.7°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#3238A2
RGBrgb(50, 56, 162)
HSLhsl(237, 53%, 42%)
HSVhsv(237, 69%, 64%)
CMYKcmyk(69.1%, 65.4%, 0%, 36.5%)
CIE-LABlab(29.70, 33.00, -58.04)
CIE-LCHlch(29.70, 66.77, 299.62°)
OKLaboklab(40.74% 0.0108 -0.1675)
OKLCHoklch(40.74% 0.168 273.7)
XYZxyz(9.2490, 6.1142, 34.8682)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3238A2 #A29C32
analogous
#3270A2 #3238A2 #6432A2
triadic
#3238A2 #A23238 #38A232
tetradic
#3238A2 #A23270 #A29C32 #32A264
square
#3238A2 #A23270 #A29C32 #32A264
split-complementary
#3238A2 #A26432 #70A232
monochromatic
#151844 #242873 #3238A2 #4A51C7 #797ED6

Accessibility & contrast

On white

9.45
#3238A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#3238A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3238A2
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3238A2#FFFFFF#000000##FFFFFF
##3238A21.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0041A0
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3238a2;
/* rgb */ color: rgb(50, 56, 162);
/* oklch */ color: oklch(40.7% 0.168 273.7);
Tailwind
colors: {
  custom: {
    50: '#796fbe',
    500: '#3238a2',
    950: '#000000',
  },
}
SCSS
$custom: #3238a2;
$custom-light: #796fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3238a2",
  "rgb": {
    "r": 50,
    "g": 56,
    "b": 162
  },
  "hsl": {
    "h": 236.786,
    "s": 52.83,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40738,
    "c": 0.1679,
    "h": 273.7
  },
  "luminance": 0.06115
}

Semantic roles & 50–950 ramp

primary
#3238A2
secondary
#BEBA72
accent
#D44CDC
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #3238A2

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

Preview Lab → · Contrast checker → · Palette generator →

#3238A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva