#4236B2#4236B2

#4236B2 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 43.0% C 0.187 H 279.4°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#4236B2
RGBrgb(66, 54, 178)
HSLhsl(246, 53%, 45%)
HSVhsv(246, 70%, 70%)
CMYKcmyk(62.9%, 69.7%, 0%, 30.2%)
CIE-LABlab(31.83, 41.85, -64.10)
CIE-LCHlch(31.83, 76.55, 303.14°)
OKLaboklab(43.02% 0.0305 -0.1849)
OKLCHoklch(43.02% 0.187 279.4)
XYZxyz(11.5993, 7.0100, 42.8527)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4236B2 #A6B236
analogous
#3668B2 #4236B2 #8036B2
triadic
#4236B2 #B24236 #36B242
tetradic
#4236B2 #B23668 #A6B236 #36B280
square
#4236B2 #B23668 #A6B236 #36B280
split-complementary
#4236B2 #B28036 #68B236
monochromatic
#1F1A54 #312883 #4236B2 #6459CD #9088DB

Accessibility & contrast

On white

8.74
#4236B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4236B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4236B2
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4236B2#FFFFFF#000000##FFFFFF
##4236B21.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#005770
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4236b2;
/* rgb */ color: rgb(66, 54, 178);
/* oklch */ color: oklch(43.0% 0.187 279.4);
Tailwind
colors: {
  custom: {
    50: '#846eca',
    500: '#4236b2',
    950: '#000000',
  },
}
SCSS
$custom: #4236b2;
$custom-light: #846eca;
$custom-dark: #000000;
JSON
{
  "hex": "#4236b2",
  "rgb": {
    "r": 66,
    "g": 54,
    "b": 178
  },
  "hsl": {
    "h": 245.806,
    "s": 53.448,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43018,
    "c": 0.18736,
    "h": 279.4
  },
  "luminance": 0.07011
}

Semantic roles & 50–950 ramp

primary
#4236B2
secondary
#BEC57F
accent
#DD4BCF
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4236B2

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

Preview Lab → · Contrast checker → · Palette generator →

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