#2C45BF#2C45BF

#2C45BF is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.4% C 0.192 H 268.3°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#2C45BF
RGBrgb(44, 69, 191)
HSLhsl(230, 63%, 46%)
HSVhsv(230, 77%, 75%)
CMYKcmyk(77%, 63.9%, 0%, 25.1%)
CIE-LABlab(35.11, 34.44, -66.46)
CIE-LCHlch(35.11, 74.85, 297.39°)
OKLaboklab(45.41% -0.0056 -0.1922)
OKLCHoklch(45.41% 0.192 268.3)
XYZxyz(12.5675, 8.5519, 50.2684)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C45BF #BFA62C
analogous
#2C8EBF #2C45BF #5C2CBF
triadic
#2C45BF #BF2C45 #45BF2C
tetradic
#2C45BF #BF2C8E #BFA62C #2CBF5C
square
#2C45BF #BF2C8E #BFA62C #2CBF5C
split-complementary
#2C45BF #BF5C2C #8EBF2C
monochromatic
#15215C #21338D #2C45BF #5168D7 #8393E2

Accessibility & contrast

On white

7.75
#2C45BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#2C45BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C45BF
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C45BF#FFFFFF#000000##FFFFFF
##2C45BF1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC3
Deuteranopia (green-blind)
#004CBD
Tritanopia (blue-blind)
#00657B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2c45bf;
/* rgb */ color: rgb(44, 69, 191);
/* oklch */ color: oklch(45.4% 0.192 268.3);
Tailwind
colors: {
  custom: {
    50: '#7c78d3',
    500: '#2c45bf',
    950: '#000000',
  },
}
SCSS
$custom: #2c45bf;
$custom-light: #7c78d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c45bf",
  "rgb": {
    "r": 44,
    "g": 69,
    "b": 191
  },
  "hsl": {
    "h": 229.796,
    "s": 62.553,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45406,
    "c": 0.19233,
    "h": 268.3
  },
  "luminance": 0.08553
}

Semantic roles & 50–950 ramp

primary
#2C45BF
secondary
#CCBE7B
accent
#CA42E6
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #2C45BF

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

Preview Lab → · Contrast checker → · Palette generator →

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