#2C38C7#2C38C7

#2C38C7 is a dark, highly saturated blue. Relative luminance 0.075; OKLCH L 44.0% C 0.217 H 270.1°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#2C38C7
RGBrgb(44, 56, 199)
HSLhsl(235, 64%, 48%)
HSVhsv(235, 78%, 78%)
CMYKcmyk(77.9%, 71.9%, 0%, 22%)
CIE-LABlab(32.89, 45.28, -74.79)
CIE-LCHlch(32.89, 87.43, 301.19°)
OKLaboklab(44.02% 0.0003 -0.2166)
OKLCHoklch(44.02% 0.217 270.1)
XYZxyz(12.7582, 7.4859, 54.7943)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C38C7 #C7BB2C
analogous
#2C85C7 #2C38C7 #6E2CC7
triadic
#2C38C7 #C72C38 #38C72C
tetradic
#2C38C7 #C72C85 #C7BB2C #2CC76E
square
#2C38C7 #C72C85 #C7BB2C #2CC76E
split-complementary
#2C38C7 #C76E2C #85C72C
monochromatic
#161C63 #212A95 #2C38C7 #5661DA #8990E5

Accessibility & contrast

On white

8.41
#2C38C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2C38C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C38C7
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C38C7#FFFFFF#000000##FFFFFF
##2C38C71.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CB
Deuteranopia (green-blind)
#0046C4
Tritanopia (blue-blind)
#00617C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2c38c7;
/* rgb */ color: rgb(44, 56, 199);
/* oklch */ color: oklch(44.0% 0.217 270.1);
Tailwind
colors: {
  custom: {
    50: '#7f70d9',
    500: '#2c38c7',
    950: '#000000',
  },
}
SCSS
$custom: #2c38c7;
$custom-light: #7f70d9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c38c7",
  "rgb": {
    "r": 44,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 235.355,
    "s": 63.786,
    "l": 47.647
  },
  "oklch": {
    "l": 0.44023,
    "c": 0.21661,
    "h": 270.1
  },
  "luminance": 0.07487
}

Semantic roles & 50–950 ramp

primary
#2C38C7
secondary
#CFC880
accent
#DA41E7
background
#F8F6FD
surface
#F0ECFB
border
#CBC7D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #2C38C7

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

Preview Lab → · Contrast checker → · Palette generator →

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