#2C248A#2C248A

#2C248A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.161 H 277.4°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#2C248A
RGBrgb(44, 36, 138)
HSLhsl(245, 59%, 34%)
HSVhsv(245, 74%, 54%)
CMYKcmyk(68.1%, 73.9%, 0%, 45.9%)
CIE-LABlab(22.41, 36.29, -55.27)
CIE-LCHlch(22.41, 66.12, 303.29°)
OKLaboklab(34.67% 0.0207 -0.1596)
OKLCHoklch(34.67% 0.161 277.4)
XYZxyz(6.2555, 3.6317, 24.4112)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C248A #828A24
analogous
#244F8A #2C248A #5F248A
triadic
#2C248A #8A2C24 #248A2C
tetradic
#2C248A #8A244F #828A24 #248A5F
square
#2C248A #8A244F #828A24 #248A5F
split-complementary
#2C248A #8A5F24 #4F8A24
monochromatic
#0D0B29 #1D1759 #2C248A #3B31BB #5F56D3

Accessibility & contrast

On white

12.16
#2C248A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2C248A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C248A
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C248A#FFFFFF#000000##FFFFFF
##2C248A1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c248a;
/* rgb */ color: rgb(44, 36, 138);
/* oklch */ color: oklch(34.7% 0.161 277.4);
Tailwind
colors: {
  custom: {
    50: '#7360ad',
    500: '#2c248a',
    950: '#000000',
  },
}
SCSS
$custom: #2c248a;
$custom-light: #7360ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c248a",
  "rgb": {
    "r": 44,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 244.706,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34673,
    "c": 0.16095,
    "h": 277.4
  },
  "luminance": 0.03632
}

Semantic roles & 50–950 ramp

primary
#2C248A
secondary
#AFB753
accent
#E246D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2C248A

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

Preview Lab → · Contrast checker → · Palette generator →

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