#2C247F#2C247F

#2C247F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.146 H 278.9°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#2C247F
RGBrgb(44, 36, 127)
HSLhsl(245, 56%, 32%)
HSVhsv(245, 72%, 50%)
CMYKcmyk(65.4%, 71.7%, 0%, 50.2%)
CIE-LABlab(21.32, 32.54, -50.15)
CIE-LCHlch(21.32, 59.78, 302.97°)
OKLaboklab(33.56% 0.0227 -0.1447)
OKLCHoklch(33.56% 0.146 278.9)
XYZxyz(5.4991, 3.3291, 20.4273)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C247F #777F24
analogous
#244A7F #2C247F #5A247F
triadic
#2C247F #7F2C24 #247F2C
tetradic
#2C247F #7F244A #777F24 #247F5A
square
#2C247F #7F244A #777F24 #247F5A
split-complementary
#2C247F #7F5A24 #4A7F24
monochromatic
#0B0920 #1B164F #2C247F #3D32AF #5B50CD

Accessibility & contrast

On white

12.61
#2C247F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2C247F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C247F
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C247F#FFFFFF#000000##FFFFFF
##2C247F1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2c247f;
/* rgb */ color: rgb(44, 36, 127);
/* oklch */ color: oklch(33.6% 0.146 278.9);
Tailwind
colors: {
  custom: {
    50: '#7060a5',
    500: '#2c247f',
    950: '#000000',
  },
}
SCSS
$custom: #2c247f;
$custom-light: #7060a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c247f",
  "rgb": {
    "r": 44,
    "g": 36,
    "b": 127
  },
  "hsl": {
    "h": 245.275,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33555,
    "c": 0.14644,
    "h": 278.9
  },
  "luminance": 0.0333
}

Semantic roles & 50–950 ramp

primary
#2C247F
secondary
#A8B14E
accent
#DF49D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2C247F

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

Preview Lab → · Contrast checker → · Palette generator →

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