#4238CA#4238CA

#4238CA is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 45.6% C 0.215 H 276.7°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#4238CA
RGBrgb(66, 56, 202)
HSLhsl(244, 58%, 51%)
HSVhsv(244, 72%, 79%)
CMYKcmyk(67.3%, 72.3%, 0%, 20.8%)
CIE-LABlab(34.50, 48.38, -73.84)
CIE-LCHlch(34.50, 88.28, 303.23°)
OKLaboklab(45.61% 0.025 -0.2133)
OKLCHoklch(45.61% 0.215 276.7)
XYZxyz(14.3181, 8.2496, 56.7034)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4238CA #C0CA38
analogous
#3877CA #4238CA #8B38CA
triadic
#4238CA #CA4238 #38CA42
tetradic
#4238CA #CA3877 #C0CA38 #38CA8B
square
#4238CA #CA3877 #C0CA38 #38CA8B
split-complementary
#4238CA #CA8B38 #77CA38
monochromatic
#221D6B #31299B #4238CA #7068D7 #9E99E4

Accessibility & contrast

On white

7.92
#4238CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#4238CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4238CA
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4238CA#FFFFFF#000000##FFFFFF
##4238CA1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CE
Deuteranopia (green-blind)
#004BC7
Tritanopia (blue-blind)
#00617E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4238ca;
/* rgb */ color: rgb(66, 56, 202);
/* oklch */ color: oklch(45.6% 0.215 276.7);
Tailwind
colors: {
  custom: {
    50: '#8871db',
    500: '#4238ca',
    950: '#000000',
  },
}
SCSS
$custom: #4238ca;
$custom-light: #8871db;
$custom-dark: #000000;
JSON
{
  "hex": "#4238ca",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 244.11,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.45608,
    "c": 0.2148,
    "h": 276.7
  },
  "luminance": 0.08251
}

Semantic roles & 50–950 ramp

primary
#4238CA
secondary
#CBCF8E
accent
#E147D7
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4238CA

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

Preview Lab → · Contrast checker → · Palette generator →

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