#4238C4#4238C4

#4238C4 is a mid, highly saturated blue. Relative luminance 0.080; OKLCH L 45.0% C 0.208 H 277.2°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#4238C4
RGBrgb(66, 56, 196)
HSLhsl(244, 56%, 49%)
HSVhsv(244, 71%, 77%)
CMYKcmyk(66.3%, 71.4%, 0%, 23.1%)
CIE-LABlab(33.92, 46.48, -71.29)
CIE-LCHlch(33.92, 85.10, 303.10°)
OKLaboklab(45.03% 0.0261 -0.2059)
OKLCHoklch(45.03% 0.208 277.2)
XYZxyz(13.6215, 7.9709, 53.0346)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4238C4 #BAC438
analogous
#3874C4 #4238C4 #8838C4
triadic
#4238C4 #C44238 #38C442
tetradic
#4238C4 #C43874 #BAC438 #38C488
square
#4238C4 #C43874 #BAC438 #38C488
split-complementary
#4238C4 #C48838 #74C438
monochromatic
#221D65 #322A94 #4238C4 #6E66D3 #9B96E1

Accessibility & contrast

On white

8.09
#4238C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#4238C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4238C4
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4238C4#FFFFFF#000000##FFFFFF
##4238C41.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C8
Deuteranopia (green-blind)
#004AC1
Tritanopia (blue-blind)
#005F7A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4238c4;
/* rgb */ color: rgb(66, 56, 196);
/* oklch */ color: oklch(45.0% 0.208 277.2);
Tailwind
colors: {
  custom: {
    50: '#8770d7',
    500: '#4238c4',
    950: '#000000',
  },
}
SCSS
$custom: #4238c4;
$custom-light: #8770d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4238c4",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 244.286,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.45025,
    "c": 0.20752,
    "h": 277.2
  },
  "luminance": 0.07972
}

Semantic roles & 50–950 ramp

primary
#4238C4
secondary
#C8CC8C
accent
#DF49D4
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4238C4

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

Preview Lab → · Contrast checker → · Palette generator →

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