#2C45C2#2C45C2

#2C45C2 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.7% C 0.196 H 268.3°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#2C45C2
RGBrgb(44, 69, 194)
HSLhsl(230, 63%, 47%)
HSVhsv(230, 77%, 76%)
CMYKcmyk(77.3%, 64.4%, 0%, 23.9%)
CIE-LABlab(35.37, 35.53, -67.78)
CIE-LCHlch(35.37, 76.53, 297.66°)
OKLaboklab(45.68% -0.0057 -0.1961)
OKLCHoklch(45.68% 0.196 268.3)
XYZxyz(12.9011, 8.6853, 52.0250)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C45C2 #C2A92C
analogous
#2C90C2 #2C45C2 #5E2CC2
triadic
#2C45C2 #C22C45 #45C22C
tetradic
#2C45C2 #C22C90 #C2A92C #2CC25E
square
#2C45C2 #C22C90 #C2A92C #2CC25E
split-complementary
#2C45C2 #C25E2C #90C22C
monochromatic
#15225E #213390 #2C45C2 #5369D8 #8595E3

Accessibility & contrast

On white

7.67
#2C45C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#2C45C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C45C2
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C45C2#FFFFFF#000000##FFFFFF
##2C45C21.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#004CC0
Tritanopia (blue-blind)
#00667D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2c45c2;
/* rgb */ color: rgb(44, 69, 194);
/* oklch */ color: oklch(45.7% 0.196 268.3);
Tailwind
colors: {
  custom: {
    50: '#7d78d6',
    500: '#2c45c2',
    950: '#000000',
  },
}
SCSS
$custom: #2c45c2;
$custom-light: #7d78d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c45c2",
  "rgb": {
    "r": 44,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 230,
    "s": 63.025,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45682,
    "c": 0.19621,
    "h": 268.3
  },
  "luminance": 0.08687
}

Semantic roles & 50–950 ramp

primary
#2C45C2
secondary
#CDBF7D
accent
#CB42E6
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #2C45C2

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

Preview Lab → · Contrast checker → · Palette generator →

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