#4238C7#4238C7

#4238C7 is a mid, highly saturated blue. Relative luminance 0.081; OKLCH L 45.3% C 0.211 H 276.9°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#4238C7
RGBrgb(66, 56, 199)
HSLhsl(244, 56%, 50%)
HSVhsv(244, 72%, 78%)
CMYKcmyk(66.8%, 71.9%, 0%, 22%)
CIE-LABlab(34.21, 47.43, -72.57)
CIE-LCHlch(34.21, 86.70, 303.17°)
OKLaboklab(45.32% 0.0255 -0.2096)
OKLCHoklch(45.32% 0.211 276.9)
XYZxyz(13.9664, 8.1089, 54.8509)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4238C7 #BDC738
analogous
#3875C7 #4238C7 #8A38C7
triadic
#4238C7 #C74238 #38C742
tetradic
#4238C7 #C73875 #BDC738 #38C78A
square
#4238C7 #C73875 #BDC738 #38C78A
split-complementary
#4238C7 #C78A38 #75C738
monochromatic
#221D67 #322B97 #4238C7 #6F68D4 #9D98E2

Accessibility & contrast

On white

8.01
#4238C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#4238C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4238C7
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4238C7#FFFFFF#000000##FFFFFF
##4238C71.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CB
Deuteranopia (green-blind)
#004AC4
Tritanopia (blue-blind)
#00607C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4238c7;
/* rgb */ color: rgb(66, 56, 199);
/* oklch */ color: oklch(45.3% 0.211 276.9);
Tailwind
colors: {
  custom: {
    50: '#8870d9',
    500: '#4238c7',
    950: '#000000',
  },
}
SCSS
$custom: #4238c7;
$custom-light: #8870d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4238c7",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 244.196,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.45316,
    "c": 0.21118,
    "h": 276.9
  },
  "luminance": 0.0811
}

Semantic roles & 50–950 ramp

primary
#4238C7
secondary
#C9CD8D
accent
#DF48D5
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4238C7

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

Preview Lab → · Contrast checker → · Palette generator →

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