#4238CB#4238CB

#4238CB is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 45.7% C 0.216 H 276.6°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#4238CB
RGBrgb(66, 56, 203)
HSLhsl(244, 59%, 51%)
HSVhsv(244, 72%, 80%)
CMYKcmyk(67.5%, 72.4%, 0%, 20.4%)
CIE-LABlab(34.59, 48.70, -74.27)
CIE-LCHlch(34.59, 88.81, 303.25°)
OKLaboklab(45.71% 0.0248 -0.2146)
OKLCHoklch(45.71% 0.216 276.6)
XYZxyz(14.4369, 8.2971, 57.3290)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4238CB #C1CB38
analogous
#3877CB #4238CB #8C38CB
triadic
#4238CB #CB4238 #38CB42
tetradic
#4238CB #CB3877 #C1CB38 #38CB8C
square
#4238CB #CB3877 #C1CB38 #38CB8C
split-complementary
#4238CB #CB8C38 #77CB38
monochromatic
#221C6C #31299D #4238CB #7069D8 #9E99E4

Accessibility & contrast

On white

7.90
#4238CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#4238CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4238CB
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4238CB#FFFFFF#000000##FFFFFF
##4238CB1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CF
Deuteranopia (green-blind)
#004BC8
Tritanopia (blue-blind)
#00617E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4238cb;
/* rgb */ color: rgb(66, 56, 203);
/* oklch */ color: oklch(45.7% 0.216 276.6);
Tailwind
colors: {
  custom: {
    50: '#8971dc',
    500: '#4238cb',
    950: '#000000',
  },
}
SCSS
$custom: #4238cb;
$custom-light: #8971dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4238cb",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 244.082,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.45706,
    "c": 0.216,
    "h": 276.6
  },
  "luminance": 0.08298
}

Semantic roles & 50–950 ramp

primary
#4238CB
secondary
#CCD08F
accent
#E246D7
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4238CB

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

Preview Lab → · Contrast checker → · Palette generator →

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