#4240AF#4240AF

#4240AF is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.4% C 0.172 H 277.6°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#4240AF
RGBrgb(66, 64, 175)
HSLhsl(241, 46%, 47%)
HSVhsv(241, 63%, 69%)
CMYKcmyk(62.3%, 63.4%, 0%, 31.4%)
CIE-LABlab(33.81, 34.82, -59.07)
CIE-LCHlch(33.81, 68.57, 300.52°)
OKLaboklab(44.38% 0.0227 -0.1701)
OKLCHoklch(44.38% 0.172 277.6)
XYZxyz(11.8155, 7.9193, 41.4551)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4240AF #ADAF40
analogous
#4076AF #4240AF #7A40AF
triadic
#4240AF #AF4240 #40AF42
tetradic
#4240AF #AF4076 #ADAF40 #40AF7A
square
#4240AF #AF4076 #ADAF40 #40AF7A
split-complementary
#4240AF #AF7A40 #76AF40
monochromatic
#201F55 #313082 #4240AF #6765C7 #9392D7

Accessibility & contrast

On white

8.13
#4240AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#4240AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4240AF
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4240AF#FFFFFF#000000##FFFFFF
##4240AF1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#004BAD
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4240af;
/* rgb */ color: rgb(66, 64, 175);
/* oklch */ color: oklch(44.4% 0.172 277.6);
Tailwind
colors: {
  custom: {
    50: '#8275c8',
    500: '#4240af',
    950: '#000000',
  },
}
SCSS
$custom: #4240af;
$custom-light: #8275c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4240af",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 241.081,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44376,
    "c": 0.17159,
    "h": 277.6
  },
  "luminance": 0.0792
}

Semantic roles & 50–950 ramp

primary
#4240AF
secondary
#C1C388
accent
#D652D4
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4240AF

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

Preview Lab → · Contrast checker → · Palette generator →

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