#4231B2#4231B2

#4231B2 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.3% C 0.193 H 280.2°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#4231B2
RGBrgb(66, 49, 178)
HSLhsl(248, 57%, 45%)
HSVhsv(248, 72%, 70%)
CMYKcmyk(62.9%, 72.5%, 0%, 30.2%)
CIE-LABlab(30.80, 44.69, -65.79)
CIE-LCHlch(30.80, 79.53, 304.19°)
OKLaboklab(42.29% 0.0342 -0.1898)
OKLCHoklch(42.29% 0.193 280.2)
XYZxyz(11.3784, 6.5684, 42.7791)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4231B2 #A1B231
analogous
#3161B2 #4231B2 #8331B2
triadic
#4231B2 #B24231 #31B242
tetradic
#4231B2 #B23161 #A1B231 #31B283
square
#4231B2 #B23161 #A1B231 #31B283
split-complementary
#4231B2 #B28331 #61B231
monochromatic
#1E1752 #302482 #4231B2 #6251CF #8D81DC

Accessibility & contrast

On white

9.08
#4231B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4231B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4231B2
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4231B2#FFFFFF#000000##FFFFFF
##4231B21.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#0044B0
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4231b2;
/* rgb */ color: rgb(66, 49, 178);
/* oklch */ color: oklch(42.3% 0.193 280.2);
Tailwind
colors: {
  custom: {
    50: '#846bca',
    500: '#4231b2',
    950: '#000000',
  },
}
SCSS
$custom: #4231b2;
$custom-light: #846bca;
$custom-dark: #000000;
JSON
{
  "hex": "#4231b2",
  "rgb": {
    "r": 66,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 247.907,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42285,
    "c": 0.19283,
    "h": 280.2
  },
  "luminance": 0.06569
}

Semantic roles & 50–950 ramp

primary
#4231B2
secondary
#BBC579
accent
#E048CC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4231B2

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

Preview Lab → · Contrast checker → · Palette generator →

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