#2C238D#2C238D

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

Color values

HEX#2C238D
RGBrgb(44, 35, 141)
HSLhsl(245, 60%, 35%)
HSVhsv(245, 75%, 55%)
CMYKcmyk(68.8%, 75.2%, 0%, 44.7%)
CIE-LABlab(22.51, 37.89, -56.97)
CIE-LCHlch(22.51, 68.42, 303.63°)
OKLaboklab(34.84% 0.0207 -0.1646)
OKLCHoklch(34.84% 0.166 277.2)
XYZxyz(6.4459, 3.6601, 25.5609)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C238D #848D23
analogous
#234F8D #2C238D #61238D
triadic
#2C238D #8D2C23 #238D2C
tetradic
#2C238D #8D234F #848D23 #238D61
square
#2C238D #8D234F #848D23 #238D61
split-complementary
#2C238D #8D6123 #4F8D23
monochromatic
#0D0B2B #1D175C #2C238D #3B2FBE #6055D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C238D#FFFFFF#000000##FFFFFF
##2C238D1.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)
#003A90
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c238d;
/* rgb */ color: rgb(44, 35, 141);
/* oklch */ color: oklch(34.8% 0.166 277.2);
Tailwind
colors: {
  custom: {
    50: '#7460af',
    500: '#2c238d',
    950: '#000000',
  },
}
SCSS
$custom: #2c238d;
$custom-light: #7460af;
$custom-dark: #000000;
JSON
{
  "hex": "#2c238d",
  "rgb": {
    "r": 44,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 245.094,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34838,
    "c": 0.16589,
    "h": 277.2
  },
  "luminance": 0.03661
}

Semantic roles & 50–950 ramp

primary
#2C238D
secondary
#B0B953
accent
#E344D6
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2C238D

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

Preview Lab → · Contrast checker → · Palette generator →

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