#4238C6#4238C6

#4238C6 is a mid, highly saturated blue. Relative luminance 0.081; OKLCH L 45.2% C 0.210 H 277.0°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#4238C6
RGBrgb(66, 56, 198)
HSLhsl(244, 56%, 50%)
HSVhsv(244, 72%, 78%)
CMYKcmyk(66.7%, 71.7%, 0%, 22.4%)
CIE-LABlab(34.11, 47.11, -72.14)
CIE-LCHlch(34.11, 86.16, 303.15°)
OKLaboklab(45.22% 0.0257 -0.2084)
OKLCHoklch(45.22% 0.21 277)
XYZxyz(13.8507, 8.0626, 54.2415)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4238C6 #BCC638
analogous
#3875C6 #4238C6 #8938C6
triadic
#4238C6 #C64238 #38C642
tetradic
#4238C6 #C63875 #BCC638 #38C689
square
#4238C6 #C63875 #BCC638 #38C689
split-complementary
#4238C6 #C68938 #75C638
monochromatic
#221D67 #322B96 #4238C6 #6F67D4 #9C97E2

Accessibility & contrast

On white

8.04
#4238C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#4238C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4238C6
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4238C6#FFFFFF#000000##FFFFFF
##4238C61.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CA
Deuteranopia (green-blind)
#004AC3
Tritanopia (blue-blind)
#00607B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4238c6;
/* rgb */ color: rgb(66, 56, 198);
/* oklch */ color: oklch(45.2% 0.210 277.0);
Tailwind
colors: {
  custom: {
    50: '#8870d9',
    500: '#4238c6',
    950: '#000000',
  },
}
SCSS
$custom: #4238c6;
$custom-light: #8870d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4238c6",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 244.225,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.45219,
    "c": 0.20996,
    "h": 277
  },
  "luminance": 0.08064
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4238C6

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

Preview Lab → · Contrast checker → · Palette generator →

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