#2C47B2#2C47B2

#2C47B2 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.6% C 0.173 H 267.8°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#2C47B2
RGBrgb(44, 71, 178)
HSLhsl(228, 60%, 44%)
HSVhsv(228, 75%, 70%)
CMYKcmyk(75.3%, 60.1%, 0%, 30.2%)
CIE-LABlab(34.51, 28.33, -59.77)
CIE-LCHlch(34.51, 66.15, 295.36°)
OKLaboklab(44.62% -0.0067 -0.1726)
OKLCHoklch(44.62% 0.173 267.8)
XYZxyz(11.3250, 8.2551, 43.1074)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C47B2 #B2972C
analogous
#2C8AB2 #2C47B2 #542CB2
triadic
#2C47B2 #B22C47 #47B22C
tetradic
#2C47B2 #B22C8A #B2972C #2CB254
square
#2C47B2 #B22C8A #B2972C #2CB254
split-complementary
#2C47B2 #B2542C #8AB22C
monochromatic
#142050 #203381 #2C47B2 #4965D2 #7A8EDE

Accessibility & contrast

On white

7.92
#2C47B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#2C47B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C47B2
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C47B2#FFFFFF#000000##FFFFFF
##2C47B21.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#006275
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2c47b2;
/* rgb */ color: rgb(44, 71, 178);
/* oklch */ color: oklch(44.6% 0.173 267.8);
Tailwind
colors: {
  custom: {
    50: '#7979ca',
    500: '#2c47b2',
    950: '#000000',
  },
}
SCSS
$custom: #2c47b2;
$custom-light: #7979ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2c47b2",
  "rgb": {
    "r": 44,
    "g": 71,
    "b": 178
  },
  "hsl": {
    "h": 227.91,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.44622,
    "c": 0.17275,
    "h": 267.8
  },
  "luminance": 0.08256
}

Semantic roles & 50–950 ramp

primary
#2C47B2
secondary
#C6B673
accent
#C344E4
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2C47B2

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

Preview Lab → · Contrast checker → · Palette generator →

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