#2C2285#2C2285

#2C2285 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.157 H 278.5°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#2C2285
RGBrgb(44, 34, 133)
HSLhsl(246, 59%, 33%)
HSVhsv(246, 74%, 52%)
CMYKcmyk(66.9%, 74.4%, 0%, 47.8%)
CIE-LABlab(21.48, 35.79, -53.68)
CIE-LCHlch(21.48, 64.51, 303.70°)
OKLaboklab(33.85% 0.0231 -0.1549)
OKLCHoklch(33.85% 0.157 278.5)
XYZxyz(5.8430, 3.3725, 22.5288)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2285 #7B8522
analogous
#224985 #2C2285 #5E2285
triadic
#2C2285 #852C22 #22852C
tetradic
#2C2285 #852249 #7B8522 #22855E
square
#2C2285 #852249 #7B8522 #22855E
split-complementary
#2C2285 #855E22 #498522
monochromatic
#0C0924 #1C1654 #2C2285 #3C2EB6 #5D4FD2

Accessibility & contrast

On white

12.54
#2C2285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2C2285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2285
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2285#FFFFFF#000000##FFFFFF
##2C22851.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c2285;
/* rgb */ color: rgb(44, 34, 133);
/* oklch */ color: oklch(33.9% 0.157 278.5);
Tailwind
colors: {
  custom: {
    50: '#725faa',
    500: '#2c2285',
    950: '#000000',
  },
}
SCSS
$custom: #2c2285;
$custom-light: #725faa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2285",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 246.061,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33853,
    "c": 0.15666,
    "h": 278.5
  },
  "luminance": 0.03373
}

Semantic roles & 50–950 ramp

primary
#2C2285
secondary
#ABB64D
accent
#E245D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C2285

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

Preview Lab → · Contrast checker → · Palette generator →

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