#4238CE#4238CE

#4238CE is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 46.0% C 0.220 H 276.3°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#4238CE
RGBrgb(66, 56, 206)
HSLhsl(244, 60%, 51%)
HSVhsv(244, 73%, 81%)
CMYKcmyk(68%, 72.8%, 0%, 19.2%)
CIE-LABlab(34.89, 49.65, -75.53)
CIE-LCHlch(34.89, 90.39, 303.32°)
OKLaboklab(46% 0.0242 -0.2183)
OKLCHoklch(46% 0.22 276.3)
XYZxyz(14.7979, 8.4415, 59.2301)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4238CE #C4CE38
analogous
#3879CE #4238CE #8D38CE
triadic
#4238CE #CE4238 #38CE42
tetradic
#4238CE #CE3879 #C4CE38 #38CE8D
square
#4238CE #CE3879 #C4CE38 #38CE8D
split-complementary
#4238CE #CE8D38 #79CE38
monochromatic
#211C70 #3028A1 #4238CE #7169DA #9F9AE6

Accessibility & contrast

On white

7.81
#4238CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#4238CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4238CE
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4238CE#FFFFFF#000000##FFFFFF
##4238CE1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D2
Deuteranopia (green-blind)
#004BCB
Tritanopia (blue-blind)
#006380
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4238ce;
/* rgb */ color: rgb(66, 56, 206);
/* oklch */ color: oklch(46.0% 0.220 276.3);
Tailwind
colors: {
  custom: {
    50: '#8971de',
    500: '#4238ce',
    950: '#000000',
  },
}
SCSS
$custom: #4238ce;
$custom-light: #8971de;
$custom-dark: #000000;
JSON
{
  "hex": "#4238ce",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 206
  },
  "hsl": {
    "h": 244,
    "s": 60.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.46001,
    "c": 0.2196,
    "h": 276.3
  },
  "luminance": 0.08443
}

Semantic roles & 50–950 ramp

primary
#4238CE
secondary
#CED290
accent
#E444D9
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4238CE

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

Preview Lab → · Contrast checker → · Palette generator →

#4238CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva