#4254A2#4254A2

#4254A2 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.2% C 0.127 H 271.1°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#4254A2
RGBrgb(66, 84, 162)
HSLhsl(229, 42%, 45%)
HSVhsv(229, 59%, 64%)
CMYKcmyk(59.3%, 48.1%, 0%, 36.5%)
CIE-LABlab(38.03, 17.49, -44.49)
CIE-LCHlch(38.03, 47.80, 291.46°)
OKLaboklab(47.23% 0.0023 -0.127)
OKLCHoklch(47.23% 0.127 271.1)
XYZxyz(11.9365, 10.1066, 35.4972)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4254A2 #A29042
analogous
#4284A2 #4254A2 #6042A2
triadic
#4254A2 #A24254 #54A242
tetradic
#4254A2 #A24284 #A29042 #42A260
square
#4254A2 #A24284 #A29042 #42A260
split-complementary
#4254A2 #A26042 #84A242
monochromatic
#1F274B #303D77 #4254A2 #6274BF #8E9AD1

Accessibility & contrast

On white

6.95
#4254A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#4254A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4254A2
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4254A2#FFFFFF#000000##FFFFFF
##4254A21.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5EA5
Deuteranopia (green-blind)
#1F56A0
Tritanopia (blue-blind)
#006673
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4254a2;
/* rgb */ color: rgb(66, 84, 162);
/* oklch */ color: oklch(47.2% 0.127 271.1);
Tailwind
colors: {
  custom: {
    50: '#7f83be',
    500: '#4254a2',
    950: '#000000',
  },
}
SCSS
$custom: #4254a2;
$custom-light: #7f83be;
$custom-dark: #000000;
JSON
{
  "hex": "#4254a2",
  "rgb": {
    "r": 66,
    "g": 84,
    "b": 162
  },
  "hsl": {
    "h": 228.75,
    "s": 42.105,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47228,
    "c": 0.12704,
    "h": 271.1
  },
  "luminance": 0.10108
}

Semantic roles & 50–950 ramp

primary
#4254A2
secondary
#BCB184
accent
#BB56D2
background
#F8F8FB
surface
#EFEFF7
border
#CACAD0
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #4254A2

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

Preview Lab → · Contrast checker → · Palette generator →

#4254A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva