#2C248D#2C248D

#2C248D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.165 H 277.0°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#2C248D
RGBrgb(44, 36, 141)
HSLhsl(245, 59%, 35%)
HSVhsv(245, 74%, 55%)
CMYKcmyk(68.8%, 74.5%, 0%, 44.7%)
CIE-LABlab(22.72, 37.31, -56.63)
CIE-LCHlch(22.72, 67.82, 303.38°)
OKLaboklab(34.99% 0.0201 -0.1636)
OKLCHoklch(34.99% 0.165 277)
XYZxyz(6.4757, 3.7197, 25.5709)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C248D #858D24
analogous
#24518D #2C248D #60248D
triadic
#2C248D #8D2C24 #248D2C
tetradic
#2C248D #8D2451 #858D24 #248D60
square
#2C248D #8D2451 #858D24 #248D60
split-complementary
#2C248D #8D6024 #518D24
monochromatic
#0E0B2B #1D185C #2C248D #3B30BE #6157D4

Accessibility & contrast

On white

12.04
#2C248D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C248D
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C248D#FFFFFF#000000##FFFFFF
##2C248D1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c248d;
/* rgb */ color: rgb(44, 36, 141);
/* oklch */ color: oklch(35.0% 0.165 277.0);
Tailwind
colors: {
  custom: {
    50: '#7360af',
    500: '#2c248d',
    950: '#000000',
  },
}
SCSS
$custom: #2c248d;
$custom-light: #7360af;
$custom-dark: #000000;
JSON
{
  "hex": "#2c248d",
  "rgb": {
    "r": 44,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 244.571,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34986,
    "c": 0.16482,
    "h": 277
  },
  "luminance": 0.0372
}

Semantic roles & 50–950 ramp

primary
#2C248D
secondary
#B1B854
accent
#E345D7
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2C248D

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

Preview Lab → · Contrast checker → · Palette generator →

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