#2C2A75#2C2A75

#2C2A75 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.125 H 278.5°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#2C2A75
RGBrgb(44, 42, 117)
HSLhsl(242, 47%, 31%)
HSVhsv(242, 64%, 46%)
CMYKcmyk(62.4%, 64.1%, 0%, 54.1%)
CIE-LABlab(21.86, 25.13, -42.91)
CIE-LCHlch(21.86, 49.73, 300.35°)
OKLaboklab(33.66% 0.0185 -0.1234)
OKLCHoklch(33.66% 0.125 278.5)
XYZxyz(5.0765, 3.4754, 17.2295)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2A75 #73752A
analogous
#2A4D75 #2C2A75 #512A75
triadic
#2C2A75 #752C2A #2A752C
tetradic
#2C2A75 #752A4D #73752A #2A7551
square
#2C2A75 #752A4D #73752A #2A7551
split-complementary
#2C2A75 #75512A #4D752A
monochromatic
#0A0A1B #1B1A48 #2C2A75 #3D3AA2 #5A57C3

Accessibility & contrast

On white

12.39
#2C2A75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2C2A75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2A75
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2A75#FFFFFF#000000##FFFFFF
##2C2A751.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003777
Deuteranopia (green-blind)
#003174
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c2a75;
/* rgb */ color: rgb(44, 42, 117);
/* oklch */ color: oklch(33.7% 0.125 278.5);
Tailwind
colors: {
  custom: {
    50: '#6e639d',
    500: '#2c2a75',
    950: '#000000',
  },
}
SCSS
$custom: #2c2a75;
$custom-light: #6e639d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2a75",
  "rgb": {
    "r": 44,
    "g": 42,
    "b": 117
  },
  "hsl": {
    "h": 241.6,
    "s": 47.17,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33664,
    "c": 0.12477,
    "h": 278.5
  },
  "luminance": 0.03476
}

Semantic roles & 50–950 ramp

primary
#2C2A75
secondary
#A5A754
accent
#D751D3
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2C2A75

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

Preview Lab → · Contrast checker → · Palette generator →

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