#2440AF#2440AF

#2440AF is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.7% C 0.179 H 267.1°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#2440AF
RGBrgb(36, 64, 175)
HSLhsl(228, 66%, 41%)
HSVhsv(228, 79%, 69%)
CMYKcmyk(79.4%, 63.4%, 0%, 31.4%)
CIE-LABlab(32.11, 30.96, -61.92)
CIE-LCHlch(32.11, 69.23, 296.57°)
OKLaboklab(42.67% -0.0091 -0.1791)
OKLCHoklch(42.67% 0.179 267.1)
XYZxyz(10.2961, 7.1358, 41.3838)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2440AF #AF9324
analogous
#2486AF #2440AF #4E24AF
triadic
#2440AF #AF2440 #40AF24
tetradic
#2440AF #AF2486 #AF9324 #24AF4E
square
#2440AF #AF2486 #AF9324 #24AF4E
split-complementary
#2440AF #AF4E24 #86AF24
monochromatic
#0F1B49 #1A2D7C #2440AF #3A59D6 #6D84E1

Accessibility & contrast

On white

8.65
#2440AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2440AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2440AF
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2440AF#FFFFFF#000000##FFFFFF
##2440AF1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0045AD
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2440af;
/* rgb */ color: rgb(36, 64, 175);
/* oklch */ color: oklch(42.7% 0.179 267.1);
Tailwind
colors: {
  custom: {
    50: '#7674c8',
    500: '#2440af',
    950: '#000000',
  },
}
SCSS
$custom: #2440af;
$custom-light: #7674c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2440af",
  "rgb": {
    "r": 36,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 227.914,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42673,
    "c": 0.17938,
    "h": 267.1
  },
  "luminance": 0.07137
}

Semantic roles & 50–950 ramp

primary
#2440AF
secondary
#C7B468
accent
#C73FE9
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2440AF

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

Preview Lab → · Contrast checker → · Palette generator →

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