#2C40A2#2C40A2

#2C40A2 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.160 H 269.4°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#2C40A2
RGBrgb(44, 64, 162)
HSLhsl(230, 57%, 40%)
HSVhsv(230, 73%, 64%)
CMYKcmyk(72.8%, 60.5%, 0%, 36.5%)
CIE-LABlab(31.37, 26.97, -55.32)
CIE-LCHlch(31.37, 61.55, 295.99°)
OKLaboklab(41.88% -0.0017 -0.1596)
OKLCHoklch(41.88% 0.16 269.4)
XYZxyz(9.3915, 6.8099, 34.9949)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C40A2 #A28E2C
analogous
#2C7BA2 #2C40A2 #532CA2
triadic
#2C40A2 #A22C40 #40A22C
tetradic
#2C40A2 #A22C7B #A28E2C #2CA253
square
#2C40A2 #A22C7B #A28E2C #2CA253
split-complementary
#2C40A2 #A2532C #7BA22C
monochromatic
#121A42 #1F2D72 #2C40A2 #4058CB #7082D8

Accessibility & contrast

On white

8.89
#2C40A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2C40A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C40A2
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C40A2#FFFFFF#000000##FFFFFF
##2C40A21.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2c40a2;
/* rgb */ color: rgb(44, 64, 162);
/* oklch */ color: oklch(41.9% 0.160 269.4);
Tailwind
colors: {
  custom: {
    50: '#7674be',
    500: '#2c40a2',
    950: '#000000',
  },
}
SCSS
$custom: #2c40a2;
$custom-light: #7674be;
$custom-dark: #000000;
JSON
{
  "hex": "#2c40a2",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 229.831,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41878,
    "c": 0.15966,
    "h": 269.4
  },
  "luminance": 0.06811
}

Semantic roles & 50–950 ramp

primary
#2C40A2
secondary
#BFB16A
accent
#C747E1
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2C40A2

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

Preview Lab → · Contrast checker → · Palette generator →

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