#2C248C#2C248C

#2C248C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.164 H 277.1°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#2C248C
RGBrgb(44, 36, 140)
HSLhsl(245, 59%, 35%)
HSVhsv(245, 74%, 55%)
CMYKcmyk(68.6%, 74.3%, 0%, 45.1%)
CIE-LABlab(22.62, 36.97, -56.18)
CIE-LCHlch(22.62, 67.25, 303.35°)
OKLaboklab(34.88% 0.0203 -0.1623)
OKLCHoklch(34.88% 0.164 277.1)
XYZxyz(6.4017, 3.6901, 25.1808)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C248C #848C24
analogous
#24508C #2C248C #60248C
triadic
#2C248C #8C2C24 #248C2C
tetradic
#2C248C #8C2450 #848C24 #248C60
square
#2C248C #8C2450 #848C24 #248C60
split-complementary
#2C248C #8C6024 #508C24
monochromatic
#0D0B2B #1D175B #2C248C #3B31BD #6057D4

Accessibility & contrast

On white

12.08
#2C248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2C248C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C248C
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C248C#FFFFFF#000000##FFFFFF
##2C248C1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c248c;
/* rgb */ color: rgb(44, 36, 140);
/* oklch */ color: oklch(34.9% 0.164 277.1);
Tailwind
colors: {
  custom: {
    50: '#7360af',
    500: '#2c248c',
    950: '#000000',
  },
}
SCSS
$custom: #2c248c;
$custom-light: #7360af;
$custom-dark: #000000;
JSON
{
  "hex": "#2c248c",
  "rgb": {
    "r": 44,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 244.615,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34881,
    "c": 0.16353,
    "h": 277.1
  },
  "luminance": 0.03691
}

Semantic roles & 50–950 ramp

primary
#2C248C
secondary
#B0B854
accent
#E246D6
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2C248C

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

Preview Lab → · Contrast checker → · Palette generator →

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