#2C2874#2C2874

#2C2874 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.126 H 279.4°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#2C2874
RGBrgb(44, 40, 116)
HSLhsl(243, 49%, 31%)
HSVhsv(243, 66%, 45%)
CMYKcmyk(62.1%, 65.5%, 0%, 54.5%)
CIE-LABlab(21.26, 26.11, -43.24)
CIE-LCHlch(21.26, 50.51, 301.12°)
OKLaboklab(33.2% 0.0205 -0.1244)
OKLCHoklch(33.2% 0.126 279.4)
XYZxyz(4.9489, 3.3137, 16.8984)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2874 #707428
analogous
#284A74 #2C2874 #522874
triadic
#2C2874 #742C28 #28742C
tetradic
#2C2874 #74284A #707428 #287452
square
#2C2874 #74284A #707428 #287452
split-complementary
#2C2874 #745228 #4A7428
monochromatic
#090919 #1B1846 #2C2874 #3D38A2 #5953C4

Accessibility & contrast

On white

12.63
#2C2874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2C2874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2874
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2874#FFFFFF#000000##FFFFFF
##2C28741.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003676
Deuteranopia (green-blind)
#003072
Tritanopia (blue-blind)
#003B4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2c2874;
/* rgb */ color: rgb(44, 40, 116);
/* oklch */ color: oklch(33.2% 0.126 279.4);
Tailwind
colors: {
  custom: {
    50: '#6e629d',
    500: '#2c2874',
    950: '#000000',
  },
}
SCSS
$custom: #2c2874;
$custom-light: #6e629d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2874",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 243.158,
    "s": 48.718,
    "l": 30.588
  },
  "oklch": {
    "l": 0.332,
    "c": 0.12606,
    "h": 279.4
  },
  "luminance": 0.03314
}

Semantic roles & 50–950 ramp

primary
#2C2874
secondary
#A2A652
accent
#D850D1
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2C2874

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

Preview Lab → · Contrast checker → · Palette generator →

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