#2C2470#2C2470

#2C2470 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.1% C 0.126 H 281.4°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#2C2470
RGBrgb(44, 36, 112)
HSLhsl(246, 51%, 29%)
HSVhsv(246, 68%, 44%)
CMYKcmyk(60.7%, 67.9%, 0%, 56.1%)
CIE-LABlab(19.91, 27.34, -42.87)
CIE-LCHlch(19.91, 50.84, 302.53°)
OKLaboklab(32.11% 0.0249 -0.1233)
OKLCHoklch(32.11% 0.126 281.4)
XYZxyz(4.5933, 2.9668, 15.6567)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2470 #687024
analogous
#244270 #2C2470 #522470
triadic
#2C2470 #702C24 #24702C
tetradic
#2C2470 #702442 #687024 #247052
square
#2C2470 #702442 #687024 #247052
split-complementary
#2C2470 #705224 #427024
monochromatic
#090717 #1A1542 #2C2470 #3E339E #574AC5

Accessibility & contrast

On white

13.18
#2C2470 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2C2470 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2470
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2470#FFFFFF#000000##FFFFFF
##2C24701.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#043746
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c2470;
/* rgb */ color: rgb(44, 36, 112);
/* oklch */ color: oklch(32.1% 0.126 281.4);
Tailwind
colors: {
  custom: {
    50: '#6d5f9a',
    500: '#2c2470',
    950: '#000000',
  },
}
SCSS
$custom: #2c2470;
$custom-light: #6d5f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2470",
  "rgb": {
    "r": 44,
    "g": 36,
    "b": 112
  },
  "hsl": {
    "h": 246.316,
    "s": 51.351,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32107,
    "c": 0.12578,
    "h": 281.4
  },
  "luminance": 0.02967
}

Semantic roles & 50–950 ramp

primary
#2C2470
secondary
#9AA34D
accent
#DB4DCC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2C2470

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

Preview Lab → · Contrast checker → · Palette generator →

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