#2C48B1#2C48B1

#2C48B1 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.7% C 0.170 H 267.5°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#2C48B1
RGBrgb(44, 72, 177)
HSLhsl(227, 60%, 43%)
HSVhsv(227, 75%, 69%)
CMYKcmyk(75.1%, 59.3%, 0%, 30.6%)
CIE-LABlab(34.69, 27.30, -58.89)
CIE-LCHlch(34.69, 64.91, 294.87°)
OKLaboklab(44.73% -0.0074 -0.17)
OKLCHoklch(44.73% 0.17 267.5)
XYZxyz(11.2891, 8.3433, 42.6019)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C48B1 #B1952C
analogous
#2C8AB1 #2C48B1 #522CB1
triadic
#2C48B1 #B12C48 #48B12C
tetradic
#2C48B1 #B12C8A #B1952C #2CB152
square
#2C48B1 #B12C8A #B1952C #2CB152
split-complementary
#2C48B1 #B1522C #8AB12C
monochromatic
#14204F #203480 #2C48B1 #4965D2 #7A8FDE

Accessibility & contrast

On white

7.87
#2C48B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2C48B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C48B1
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C48B1#FFFFFF#000000##FFFFFF
##2C48B11.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B5
Deuteranopia (green-blind)
#004CAF
Tritanopia (blue-blind)
#006275
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2c48b1;
/* rgb */ color: rgb(44, 72, 177);
/* oklch */ color: oklch(44.7% 0.170 267.5);
Tailwind
colors: {
  custom: {
    50: '#797ac9',
    500: '#2c48b1',
    950: '#000000',
  },
}
SCSS
$custom: #2c48b1;
$custom-light: #797ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c48b1",
  "rgb": {
    "r": 44,
    "g": 72,
    "b": 177
  },
  "hsl": {
    "h": 227.368,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4473,
    "c": 0.17017,
    "h": 267.5
  },
  "luminance": 0.08345
}

Semantic roles & 50–950 ramp

primary
#2C48B1
secondary
#C6B473
accent
#C244E3
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2C48B1

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

Preview Lab → · Contrast checker → · Palette generator →

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