#4238CC#4238CC

#4238CC is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 45.8% C 0.217 H 276.5°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#4238CC
RGBrgb(66, 56, 204)
HSLhsl(244, 59%, 51%)
HSVhsv(244, 73%, 80%)
CMYKcmyk(67.6%, 72.5%, 0%, 20%)
CIE-LABlab(34.69, 49.02, -74.69)
CIE-LCHlch(34.69, 89.34, 303.28°)
OKLaboklab(45.8% 0.0246 -0.2158)
OKLCHoklch(45.8% 0.217 276.5)
XYZxyz(14.5565, 8.3449, 57.9587)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4238CC #C2CC38
analogous
#3878CC #4238CC #8C38CC
triadic
#4238CC #CC4238 #38CC42
tetradic
#4238CC #CC3878 #C2CC38 #38CC8C
square
#4238CC #CC3878 #C2CC38 #38CC8C
split-complementary
#4238CC #CC8C38 #78CC38
monochromatic
#221C6E #31299E #4238CC #7069D8 #9F99E5

Accessibility & contrast

On white

7.87
#4238CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#4238CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4238CC
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4238CC#FFFFFF#000000##FFFFFF
##4238CC1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D0
Deuteranopia (green-blind)
#004BC9
Tritanopia (blue-blind)
#00627F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4238cc;
/* rgb */ color: rgb(66, 56, 204);
/* oklch */ color: oklch(45.8% 0.217 276.5);
Tailwind
colors: {
  custom: {
    50: '#8971dd',
    500: '#4238cc',
    950: '#000000',
  },
}
SCSS
$custom: #4238cc;
$custom-light: #8971dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4238cc",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 244.054,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.45804,
    "c": 0.21721,
    "h": 276.5
  },
  "luminance": 0.08346
}

Semantic roles & 50–950 ramp

primary
#4238CC
secondary
#CCD18F
accent
#E245D8
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4238CC

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

Preview Lab → · Contrast checker → · Palette generator →

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