#4238C8#4238C8

#4238C8 is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.4% C 0.212 H 276.8°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#4238C8
RGBrgb(66, 56, 200)
HSLhsl(244, 57%, 50%)
HSVhsv(244, 72%, 78%)
CMYKcmyk(67%, 72%, 0%, 21.6%)
CIE-LABlab(34.30, 47.75, -73.00)
CIE-LCHlch(34.30, 87.23, 303.19°)
OKLaboklab(45.41% 0.0253 -0.2109)
OKLCHoklch(45.41% 0.212 276.8)
XYZxyz(14.0829, 8.1555, 55.4644)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4238C8 #BEC838
analogous
#3876C8 #4238C8 #8A38C8
triadic
#4238C8 #C84238 #38C842
tetradic
#4238C8 #C83876 #BEC838 #38C88A
square
#4238C8 #C83876 #BEC838 #38C88A
split-complementary
#4238C8 #C88A38 #76C838
monochromatic
#221D69 #322A99 #4238C8 #7068D5 #9D98E3

Accessibility & contrast

On white

7.98
#4238C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#4238C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4238C8
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4238C8#FFFFFF#000000##FFFFFF
##4238C81.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CC
Deuteranopia (green-blind)
#004AC5
Tritanopia (blue-blind)
#00607C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4238c8;
/* rgb */ color: rgb(66, 56, 200);
/* oklch */ color: oklch(45.4% 0.212 276.8);
Tailwind
colors: {
  custom: {
    50: '#8870da',
    500: '#4238c8',
    950: '#000000',
  },
}
SCSS
$custom: #4238c8;
$custom-light: #8870da;
$custom-dark: #000000;
JSON
{
  "hex": "#4238c8",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 244.167,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.45413,
    "c": 0.21239,
    "h": 276.8
  },
  "luminance": 0.08157
}

Semantic roles & 50–950 ramp

primary
#4238C8
secondary
#CACE8E
accent
#E048D5
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4238C8

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

Preview Lab → · Contrast checker → · Palette generator →

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