#2C248B#2C248B

#2C248B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.162 H 277.3°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#2C248B
RGBrgb(44, 36, 139)
HSLhsl(245, 59%, 34%)
HSVhsv(245, 74%, 55%)
CMYKcmyk(68.3%, 74.1%, 0%, 45.5%)
CIE-LABlab(22.52, 36.63, -55.72)
CIE-LCHlch(22.52, 66.69, 303.32°)
OKLaboklab(34.78% 0.0205 -0.1609)
OKLCHoklch(34.78% 0.162 277.3)
XYZxyz(6.3283, 3.6608, 24.7942)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C248B #838B24
analogous
#24508B #2C248B #60248B
triadic
#2C248B #8B2C24 #248B2C
tetradic
#2C248B #8B2450 #838B24 #248B60
square
#2C248B #8B2450 #838B24 #248B60
split-complementary
#2C248B #8B6024 #508B24
monochromatic
#0D0B2A #1D175A #2C248B #3B31BC #6056D3

Accessibility & contrast

On white

12.12
#2C248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C248B
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C248B#FFFFFF#000000##FFFFFF
##2C248B1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c248b;
/* rgb */ color: rgb(44, 36, 139);
/* oklch */ color: oklch(34.8% 0.162 277.3);
Tailwind
colors: {
  custom: {
    50: '#7360ae',
    500: '#2c248b',
    950: '#000000',
  },
}
SCSS
$custom: #2c248b;
$custom-light: #7360ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c248b",
  "rgb": {
    "r": 44,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 244.66,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34777,
    "c": 0.16225,
    "h": 277.3
  },
  "luminance": 0.03661
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C248B

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

Preview Lab → · Contrast checker → · Palette generator →

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