#1240A1#1240A1

#1240A1 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.8% C 0.165 H 262.5°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#1240A1
RGBrgb(18, 64, 161)
HSLhsl(221, 80%, 35%)
HSVhsv(221, 89%, 63%)
CMYKcmyk(88.8%, 60.2%, 0%, 36.9%)
CIE-LABlab(30.32, 24.05, -56.47)
CIE-LCHlch(30.32, 61.38, 293.07°)
OKLaboklab(40.8% -0.0214 -0.1635)
OKLCHoklch(40.8% 0.165 262.5)
XYZxyz(8.5136, 6.3675, 34.4916)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1240A1 #A17312
analogous
#1288A1 #1240A1 #2B12A1
triadic
#1240A1 #A11240 #40A112
tetradic
#1240A1 #A11288 #A17312 #12A12B
square
#1240A1 #A11288 #A17312 #12A12B
split-complementary
#1240A1 #A12B12 #88A112
monochromatic
#061433 #0C2A6A #1240A1 #1856D8 #4379EA

Accessibility & contrast

On white

9.24
#1240A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#1240A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1240A1
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1240A1#FFFFFF#000000##FFFFFF
##1240A11.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1240a1;
/* rgb */ color: rgb(18, 64, 161);
/* oklch */ color: oklch(40.8% 0.165 262.5);
Tailwind
colors: {
  custom: {
    50: '#6e74be',
    500: '#1240a1',
    950: '#000000',
  },
}
SCSS
$custom: #1240a1;
$custom-light: #6e74be;
$custom-dark: #000000;
JSON
{
  "hex": "#1240a1",
  "rgb": {
    "r": 18,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 220.699,
    "s": 79.888,
    "l": 35.098
  },
  "oklch": {
    "l": 0.408,
    "c": 0.16485,
    "h": 262.5
  },
  "luminance": 0.06369
}

Semantic roles & 50–950 ramp

primary
#1240A1
secondary
#CA9F45
accent
#B731F6
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1240A1

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

Preview Lab → · Contrast checker → · Palette generator →

#1240A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva