#2C238E#2C238E

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

Color values

HEX#2C238E
RGBrgb(44, 35, 142)
HSLhsl(245, 60%, 35%)
HSVhsv(245, 75%, 56%)
CMYKcmyk(69%, 75.4%, 0%, 44.3%)
CIE-LABlab(22.62, 38.22, -57.42)
CIE-LCHlch(22.62, 68.98, 303.65°)
OKLaboklab(34.94% 0.0205 -0.1659)
OKLCHoklch(34.94% 0.167 277.1)
XYZxyz(6.5206, 3.6900, 25.9545)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C238E #858E23
analogous
#234F8E #2C238E #62238E
triadic
#2C238E #8E2C23 #238E2C
tetradic
#2C238E #8E234F #858E23 #238E62
square
#2C238E #8E234F #858E23 #238E62
split-complementary
#2C238E #8E6223 #4F8E23
monochromatic
#0E0B2C #1D175D #2C238E #3B2FBF #6156D5

Accessibility & contrast

On white

12.08
#2C238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C238E
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C238E#FFFFFF#000000##FFFFFF
##2C238E1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c238e;
/* rgb */ color: rgb(44, 35, 142);
/* oklch */ color: oklch(34.9% 0.167 277.1);
Tailwind
colors: {
  custom: {
    50: '#7460b0',
    500: '#2c238e',
    950: '#000000',
  },
}
SCSS
$custom: #2c238e;
$custom-light: #7460b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c238e",
  "rgb": {
    "r": 44,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 245.047,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34943,
    "c": 0.16716,
    "h": 277.1
  },
  "luminance": 0.03691
}

Semantic roles & 50–950 ramp

primary
#2C238E
secondary
#B1B953
accent
#E444D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2C238E

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

Preview Lab → · Contrast checker → · Palette generator →

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