#2C228F#2C228F

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

Color values

HEX#2C228F
RGBrgb(44, 34, 143)
HSLhsl(246, 62%, 35%)
HSVhsv(246, 76%, 56%)
CMYKcmyk(69.2%, 76.2%, 0%, 43.9%)
CIE-LABlab(22.52, 39.13, -58.21)
CIE-LCHlch(22.52, 70.14, 303.91°)
OKLaboklab(34.91% 0.0209 -0.1682)
OKLCHoklch(34.91% 0.169 277.1)
XYZxyz(6.5670, 3.6621, 26.3421)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C228F #858F22
analogous
#224E8F #2C228F #63228F
triadic
#2C228F #8F2C22 #228F2C
tetradic
#2C228F #8F224E #858F22 #228F63
square
#2C228F #8F224E #858F22 #228F63
split-complementary
#2C228F #8F6322 #4E8F22
monochromatic
#0E0A2C #1D165E #2C228F #3B2EC0 #6155D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C228F#FFFFFF#000000##FFFFFF
##2C228F1.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)
#003A92
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c228f;
/* rgb */ color: rgb(44, 34, 143);
/* oklch */ color: oklch(34.9% 0.169 277.1);
Tailwind
colors: {
  custom: {
    50: '#745fb1',
    500: '#2c228f',
    950: '#000000',
  },
}
SCSS
$custom: #2c228f;
$custom-light: #745fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c228f",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 245.505,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34906,
    "c": 0.16946,
    "h": 277.1
  },
  "luminance": 0.03663
}

Semantic roles & 50–950 ramp

primary
#2C228F
secondary
#B1BA52
accent
#E543D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2C228F

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

Preview Lab → · Contrast checker → · Palette generator →

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