#2C247C#2C247C

#2C247C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.142 H 279.4°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#2C247C
RGBrgb(44, 36, 124)
HSLhsl(245, 55%, 31%)
HSVhsv(245, 71%, 49%)
CMYKcmyk(64.5%, 71%, 0%, 51.4%)
CIE-LABlab(21.03, 31.50, -48.73)
CIE-LCHlch(21.03, 58.02, 302.88°)
OKLaboklab(33.26% 0.0232 -0.1405)
OKLCHoklch(33.26% 0.142 279.4)
XYZxyz(5.3065, 3.2521, 19.4129)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C247C #747C24
analogous
#24487C #2C247C #58247C
triadic
#2C247C #7C2C24 #247C2C
tetradic
#2C247C #7C2448 #747C24 #247C58
square
#2C247C #7C2448 #747C24 #247C58
split-complementary
#2C247C #7C5824 #487C24
monochromatic
#0A081D #1B164D #2C247C #3D32AB #5A4FCC

Accessibility & contrast

On white

12.72
#2C247C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2C247C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C247C
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C247C#FFFFFF#000000##FFFFFF
##2C247C1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2c247c;
/* rgb */ color: rgb(44, 36, 124);
/* oklch */ color: oklch(33.3% 0.142 279.4);
Tailwind
colors: {
  custom: {
    50: '#7060a3',
    500: '#2c247c',
    950: '#000000',
  },
}
SCSS
$custom: #2c247c;
$custom-light: #7060a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c247c",
  "rgb": {
    "r": 44,
    "g": 36,
    "b": 124
  },
  "hsl": {
    "h": 245.455,
    "s": 55,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33258,
    "c": 0.14239,
    "h": 279.4
  },
  "luminance": 0.03252
}

Semantic roles & 50–950 ramp

primary
#2C247C
secondary
#A6AE4D
accent
#DE49D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2C247C

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

Preview Lab → · Contrast checker → · Palette generator →

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