#2C38B9#2C38B9

#2C38B9 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.6% C 0.199 H 270.6°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#2C38B9
RGBrgb(44, 56, 185)
HSLhsl(235, 62%, 45%)
HSVhsv(235, 76%, 73%)
CMYKcmyk(76.2%, 69.7%, 0%, 27.5%)
CIE-LABlab(31.50, 40.45, -68.85)
CIE-LCHlch(31.50, 79.85, 300.43°)
OKLaboklab(42.61% 0.002 -0.1993)
OKLCHoklch(42.61% 0.199 270.6)
XYZxyz(11.2069, 6.8654, 46.6241)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C38B9 #B9AD2C
analogous
#2C7EB9 #2C38B9 #672CB9
triadic
#2C38B9 #B92C38 #38B92C
tetradic
#2C38B9 #B92C7E #B9AD2C #2CB967
square
#2C38B9 #B92C7E #B9AD2C #2CB967
split-complementary
#2C38B9 #B9672C #7EB92C
monochromatic
#141A56 #202988 #2C38B9 #4D59D5 #7F87E1

Accessibility & contrast

On white

8.85
#2C38B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2C38B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C38B9
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C38B9#FFFFFF#000000##FFFFFF
##2C38B91.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BD
Deuteranopia (green-blind)
#0043B7
Tritanopia (blue-blind)
#005C74
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2c38b9;
/* rgb */ color: rgb(44, 56, 185);
/* oklch */ color: oklch(42.6% 0.199 270.6);
Tailwind
colors: {
  custom: {
    50: '#7c6fcf',
    500: '#2c38b9',
    950: '#000000',
  },
}
SCSS
$custom: #2c38b9;
$custom-light: #7c6fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c38b9",
  "rgb": {
    "r": 44,
    "g": 56,
    "b": 185
  },
  "hsl": {
    "h": 234.894,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42606,
    "c": 0.19931,
    "h": 270.6
  },
  "luminance": 0.06867
}

Semantic roles & 50–950 ramp

primary
#2C38B9
secondary
#C9C278
accent
#D743E5
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2C38B9

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

Preview Lab → · Contrast checker → · Palette generator →

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