#4245AF#4245AF

#4245AF is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.3% C 0.165 H 276.3°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#4245AF
RGBrgb(66, 69, 175)
HSLhsl(238, 45%, 47%)
HSVhsv(238, 62%, 69%)
CMYKcmyk(62.3%, 60.6%, 0%, 31.4%)
CIE-LABlab(35.02, 31.68, -57.10)
CIE-LCHlch(35.02, 65.30, 299.02°)
OKLaboklab(45.26% 0.0182 -0.1643)
OKLCHoklch(45.26% 0.165 276.3)
XYZxyz(12.1102, 8.5087, 41.5533)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4245AF #AFAC42
analogous
#427BAF #4245AF #7642AF
triadic
#4245AF #AF4245 #45AF42
tetradic
#4245AF #AF427B #AFAC42 #42AF76
square
#4245AF #AF427B #AFAC42 #42AF76
split-complementary
#4245AF #AF7642 #7BAF42
monochromatic
#202256 #313383 #4245AF #686BC6 #9596D7

Accessibility & contrast

On white

7.77
#4245AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#4245AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4245AF
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4245AF#FFFFFF#000000##FFFFFF
##4245AF1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B2
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#005F73
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4245af;
/* rgb */ color: rgb(66, 69, 175);
/* oklch */ color: oklch(45.3% 0.165 276.3);
Tailwind
colors: {
  custom: {
    50: '#8279c8',
    500: '#4245af',
    950: '#000000',
  },
}
SCSS
$custom: #4245af;
$custom-light: #8279c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4245af",
  "rgb": {
    "r": 66,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 238.349,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45262,
    "c": 0.16528,
    "h": 276.3
  },
  "luminance": 0.0851
}

Semantic roles & 50–950 ramp

primary
#4245AF
secondary
#C2C18A
accent
#D153D5
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #4245AF

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

Preview Lab → · Contrast checker → · Palette generator →

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