#4238B2#4238B2

#4238B2 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.3% C 0.185 H 279.0°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#4238B2
RGBrgb(66, 56, 178)
HSLhsl(245, 52%, 46%)
HSVhsv(245, 69%, 70%)
CMYKcmyk(62.9%, 68.5%, 0%, 30.2%)
CIE-LABlab(32.26, 40.68, -63.40)
CIE-LCHlch(32.26, 75.33, 302.68°)
OKLaboklab(43.33% 0.029 -0.1828)
OKLCHoklch(43.33% 0.185 279)
XYZxyz(11.6943, 7.2000, 42.8843)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4238B2 #A8B238
analogous
#386BB2 #4238B2 #7F38B2
triadic
#4238B2 #B24238 #38B242
tetradic
#4238B2 #B2386B #A8B238 #38B27F
square
#4238B2 #B2386B #A8B238 #38B27F
split-complementary
#4238B2 #B27F38 #6BB238
monochromatic
#1F1B55 #312983 #4238B2 #655CCC #918ADA

Accessibility & contrast

On white

8.61
#4238B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#4238B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4238B2
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4238B2#FFFFFF#000000##FFFFFF
##4238B21.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#005870
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4238b2;
/* rgb */ color: rgb(66, 56, 178);
/* oklch */ color: oklch(43.3% 0.185 279.0);
Tailwind
colors: {
  custom: {
    50: '#8470ca',
    500: '#4238b2',
    950: '#000000',
  },
}
SCSS
$custom: #4238b2;
$custom-light: #8470ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4238b2",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 244.918,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.43326,
    "c": 0.18509,
    "h": 279
  },
  "luminance": 0.07201
}

Semantic roles & 50–950 ramp

primary
#4238B2
secondary
#BFC581
accent
#DC4CD0
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4238B2

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

Preview Lab → · Contrast checker → · Palette generator →

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