#2C2C85#2C2C85

#2C2C85 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.145 H 276.1°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#2C2C85
RGBrgb(44, 44, 133)
HSLhsl(240, 50%, 35%)
HSVhsv(240, 67%, 52%)
CMYKcmyk(66.9%, 66.9%, 0%, 47.8%)
CIE-LABlab(23.77, 29.55, -49.91)
CIE-LCHlch(23.77, 58.00, 300.62°)
OKLaboklab(35.5% 0.0154 -0.1439)
OKLCHoklch(35.5% 0.145 276.1)
XYZxyz(6.1716, 4.0298, 22.6383)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2C85 #85852C
analogous
#2C5985 #2C2C85 #592C85
triadic
#2C2C85 #852C2C #2C852C
tetradic
#2C2C85 #852C59 #85852C #2C8559
square
#2C2C85 #852C59 #85852C #2C8559
split-complementary
#2C2C85 #85592C #59852C
monochromatic
#0E0E29 #1D1D57 #2C2C85 #3B3BB3 #6161CB

Accessibility & contrast

On white

11.63
#2C2C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2C2C85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2C85
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2C85#FFFFFF#000000##FFFFFF
##2C2C851.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#003583
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2c2c85;
/* rgb */ color: rgb(44, 44, 133);
/* oklch */ color: oklch(35.5% 0.145 276.1);
Tailwind
colors: {
  custom: {
    50: '#7165a9',
    500: '#2c2c85',
    950: '#000000',
  },
}
SCSS
$custom: #2c2c85;
$custom-light: #7165a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2c85",
  "rgb": {
    "r": 44,
    "g": 44,
    "b": 133
  },
  "hsl": {
    "h": 240,
    "s": 50.282,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35503,
    "c": 0.14477,
    "h": 276.1
  },
  "luminance": 0.0403
}

Semantic roles & 50–950 ramp

primary
#2C2C85
secondary
#B1B15C
accent
#DA4EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2C2C85

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

Preview Lab → · Contrast checker → · Palette generator →

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