#4236A2#4236A2

#4236A2 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.6% C 0.167 H 281.3°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#4236A2
RGBrgb(66, 54, 162)
HSLhsl(247, 50%, 42%)
HSVhsv(247, 67%, 64%)
CMYKcmyk(59.3%, 66.7%, 0%, 36.5%)
CIE-LABlab(30.41, 36.67, -56.83)
CIE-LCHlch(30.41, 67.63, 302.83°)
OKLaboklab(41.56% 0.0328 -0.1635)
OKLCHoklch(41.56% 0.167 281.3)
XYZxyz(10.0855, 6.4045, 34.8802)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4236A2 #96A236
analogous
#3660A2 #4236A2 #7836A2
triadic
#4236A2 #A24236 #36A242
tetradic
#4236A2 #A23660 #96A236 #36A278
square
#4236A2 #A23660 #96A236 #36A278
split-complementary
#4236A2 #A27836 #60A236
monochromatic
#1D1746 #2F2774 #4236A2 #5D50C5 #887ED4

Accessibility & contrast

On white

9.21
#4236A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4236A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4236A2
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4236A2#FFFFFF#000000##FFFFFF
##4236A21.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#035267
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4236a2;
/* rgb */ color: rgb(66, 54, 162);
/* oklch */ color: oklch(41.6% 0.167 281.3);
Tailwind
colors: {
  custom: {
    50: '#816ebe',
    500: '#4236a2',
    950: '#000000',
  },
}
SCSS
$custom: #4236a2;
$custom-light: #816ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#4236a2",
  "rgb": {
    "r": 66,
    "g": 54,
    "b": 162
  },
  "hsl": {
    "h": 246.667,
    "s": 50,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41559,
    "c": 0.16679,
    "h": 281.3
  },
  "luminance": 0.06405
}

Semantic roles & 50–950 ramp

primary
#4236A2
secondary
#B5BD77
accent
#DA4ECA
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #4236A2

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

Preview Lab → · Contrast checker → · Palette generator →

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