#4151AF#4151AF

#4151AF is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.5% C 0.150 H 272.2°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#4151AF
RGBrgb(65, 81, 175)
HSLhsl(231, 46%, 47%)
HSVhsv(231, 63%, 69%)
CMYKcmyk(62.9%, 53.7%, 0%, 31.4%)
CIE-LABlab(38.03, 23.80, -52.23)
CIE-LCHlch(38.03, 57.40, 294.50°)
OKLaboklab(47.49% 0.0057 -0.1499)
OKLCHoklch(47.49% 0.15 272.2)
XYZxyz(12.8577, 10.1027, 41.8216)
Luminance0.1010 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4151AF #AF9F41
analogous
#4188AF #4151AF #6841AF
triadic
#4151AF #AF4151 #51AF41
tetradic
#4151AF #AF4188 #AF9F41 #41AF68
square
#4151AF #AF4188 #AF9F41 #41AF68
split-complementary
#4151AF #AF6841 #88AF41
monochromatic
#202856 #303C82 #4151AF #6775C6 #939DD7

Accessibility & contrast

On white

6.95
#4151AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#4151AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4151AF
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4151AF#FFFFFF#000000##FFFFFF
##4151AF1.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)
#145FB2
Deuteranopia (green-blind)
#0055AD
Tritanopia (blue-blind)
#006778
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4151af;
/* rgb */ color: rgb(65, 81, 175);
/* oklch */ color: oklch(47.5% 0.150 272.2);
Tailwind
colors: {
  custom: {
    50: '#8181c7',
    500: '#4151af',
    950: '#000000',
  },
}
SCSS
$custom: #4151af;
$custom-light: #8181c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4151af",
  "rgb": {
    "r": 65,
    "g": 81,
    "b": 175
  },
  "hsl": {
    "h": 231.273,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.47485,
    "c": 0.14997,
    "h": 272.2
  },
  "luminance": 0.10104
}

Semantic roles & 50–950 ramp

primary
#4151AF
secondary
#C2BA89
accent
#C252D5
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4151AF

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

Preview Lab → · Contrast checker → · Palette generator →

#4151AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva