#3238B1#3238B1

#3238B1 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.2% C 0.188 H 272.9°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#3238B1
RGBrgb(50, 56, 177)
HSLhsl(237, 56%, 45%)
HSVhsv(237, 72%, 69%)
CMYKcmyk(71.8%, 68.4%, 0%, 30.6%)
CIE-LABlab(31.07, 38.27, -64.80)
CIE-LCHlch(31.07, 75.26, 300.57°)
OKLaboklab(42.15% 0.0094 -0.1873)
OKLCHoklch(42.15% 0.188 272.9)
XYZxyz(10.6627, 6.6797, 42.3138)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3238B1 #B1AB32
analogous
#3278B1 #3238B1 #6B32B1
triadic
#3238B1 #B13238 #38B132
tetradic
#3238B1 #B13278 #B1AB32 #32B16B
square
#3238B1 #B13278 #B1AB32 #32B16B
split-complementary
#3238B1 #B16B32 #78B132
monochromatic
#171A52 #252981 #3238B1 #5258CE #8286DC

Accessibility & contrast

On white

8.99
#3238B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#3238B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3238B1
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3238B1#FFFFFF#000000##FFFFFF
##3238B11.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#0043AF
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3238b1;
/* rgb */ color: rgb(50, 56, 177);
/* oklch */ color: oklch(42.2% 0.188 272.9);
Tailwind
colors: {
  custom: {
    50: '#7c6fc9',
    500: '#3238b1',
    950: '#000000',
  },
}
SCSS
$custom: #3238b1;
$custom-light: #7c6fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#3238b1",
  "rgb": {
    "r": 50,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 237.165,
    "s": 55.947,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42152,
    "c": 0.18757,
    "h": 272.9
  },
  "luminance": 0.06681
}

Semantic roles & 50–950 ramp

primary
#3238B1
secondary
#C5C17A
accent
#D849DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3238B1

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

Preview Lab → · Contrast checker → · Palette generator →

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