#2C40AA#2C40AA

#2C40AA is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.6% C 0.171 H 269.4°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#2C40AA
RGBrgb(44, 64, 170)
HSLhsl(230, 59%, 42%)
HSVhsv(230, 74%, 67%)
CMYKcmyk(74.1%, 62.4%, 0%, 33.3%)
CIE-LABlab(32.04, 29.95, -59.04)
CIE-LCHlch(32.04, 66.20, 296.90°)
OKLaboklab(42.58% -0.0018 -0.1705)
OKLCHoklch(42.58% 0.171 269.4)
XYZxyz(10.1253, 7.1035, 38.8599)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C40AA #AA962C
analogous
#2C7FAA #2C40AA #572CAA
triadic
#2C40AA #AA2C40 #40AA2C
tetradic
#2C40AA #AA2C7F #AA962C #2CAA57
square
#2C40AA #AA2C7F #AA962C #2CAA57
split-complementary
#2C40AA #AA572C #7FAA2C
monochromatic
#131B49 #1F2E79 #2C40AA #445ACF #7585DB

Accessibility & contrast

On white

8.67
#2C40AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2C40AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C40AA
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C40AA#FFFFFF#000000##FFFFFF
##2C40AA1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#0046A8
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2c40aa;
/* rgb */ color: rgb(44, 64, 170);
/* oklch */ color: oklch(42.6% 0.171 269.4);
Tailwind
colors: {
  custom: {
    50: '#7874c4',
    500: '#2c40aa',
    950: '#000000',
  },
}
SCSS
$custom: #2c40aa;
$custom-light: #7874c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c40aa",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 230.476,
    "s": 58.879,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42584,
    "c": 0.17055,
    "h": 269.4
  },
  "luminance": 0.07105
}

Semantic roles & 50–950 ramp

primary
#2C40AA
secondary
#C3B66F
accent
#C946E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2C40AA

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

Preview Lab → · Contrast checker → · Palette generator →

#2C40AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva