#4238B6#4238B6

#4238B6 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.7% C 0.190 H 278.6°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#4238B6
RGBrgb(66, 56, 182)
HSLhsl(245, 53%, 47%)
HSVhsv(245, 69%, 71%)
CMYKcmyk(63.7%, 69.2%, 0%, 28.6%)
CIE-LABlab(32.62, 41.97, -65.18)
CIE-LCHlch(32.62, 77.53, 302.78°)
OKLaboklab(43.7% 0.0284 -0.188)
OKLCHoklch(43.7% 0.19 278.6)
XYZxyz(12.1017, 7.3630, 45.0304)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4238B6 #ACB638
analogous
#386DB6 #4238B6 #8138B6
triadic
#4238B6 #B64238 #38B642
tetradic
#4238B6 #B6386D #ACB638 #38B681
square
#4238B6 #B6386D #ACB638 #38B681
split-complementary
#4238B6 #B68138 #6DB638
monochromatic
#201B58 #312A87 #4238B6 #675ECD #938DDC

Accessibility & contrast

On white

8.49
#4238B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#4238B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4238B6
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4238B6#FFFFFF#000000##FFFFFF
##4238B61.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BA
Deuteranopia (green-blind)
#0048B4
Tritanopia (blue-blind)
#005A72
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4238b6;
/* rgb */ color: rgb(66, 56, 182);
/* oklch */ color: oklch(43.7% 0.190 278.6);
Tailwind
colors: {
  custom: {
    50: '#8470cd',
    500: '#4238b6',
    950: '#000000',
  },
}
SCSS
$custom: #4238b6;
$custom-light: #8470cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4238b6",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 244.762,
    "s": 52.941,
    "l": 46.667
  },
  "oklch": {
    "l": 0.43696,
    "c": 0.19016,
    "h": 278.6
  },
  "luminance": 0.07364
}

Semantic roles & 50–950 ramp

primary
#4238B6
secondary
#C1C684
accent
#DC4BD1
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #4238B6

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

Preview Lab → · Contrast checker → · Palette generator →

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