#4145B2#4145B2

#4145B2 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.4% C 0.170 H 275.7°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#4145B2
RGBrgb(65, 69, 178)
HSLhsl(238, 47%, 48%)
HSVhsv(238, 63%, 70%)
CMYKcmyk(63.5%, 61.2%, 0%, 30.2%)
CIE-LABlab(35.19, 32.54, -58.61)
CIE-LCHlch(35.19, 67.04, 299.04°)
OKLaboklab(45.44% 0.0169 -0.1687)
OKLCHoklch(45.44% 0.17 275.7)
XYZxyz(12.3413, 8.5934, 43.1192)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4145B2 #B2AE41
analogous
#417EB2 #4145B2 #7541B2
triadic
#4145B2 #B24145 #45B241
tetradic
#4145B2 #B2417E #B2AE41 #41B275
square
#4145B2 #B2417E #B2AE41 #41B275
split-complementary
#4145B2 #B27541 #7EB241
monochromatic
#202258 #313485 #4145B2 #686CC8 #9597D8

Accessibility & contrast

On white

7.72
#4145B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#4145B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4145B2
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4145B2#FFFFFF#000000##FFFFFF
##4145B21.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#006075
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4145b2;
/* rgb */ color: rgb(65, 69, 178);
/* oklch */ color: oklch(45.4% 0.170 275.7);
Tailwind
colors: {
  custom: {
    50: '#8279ca',
    500: '#4145b2',
    950: '#000000',
  },
}
SCSS
$custom: #4145b2;
$custom-light: #8279ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4145b2",
  "rgb": {
    "r": 65,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 237.876,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45443,
    "c": 0.16959,
    "h": 275.7
  },
  "luminance": 0.08594
}

Semantic roles & 50–950 ramp

primary
#4145B2
secondary
#C4C28B
accent
#D152D6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #4145B2

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

Preview Lab → · Contrast checker → · Palette generator →

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