#2C38B6#2C38B6

#2C38B6 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.3% C 0.196 H 270.7°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#2C38B6
RGBrgb(44, 56, 182)
HSLhsl(235, 61%, 44%)
HSVhsv(235, 76%, 71%)
CMYKcmyk(75.8%, 69.2%, 0%, 28.6%)
CIE-LABlab(31.21, 39.39, -67.55)
CIE-LCHlch(31.21, 78.20, 300.25°)
OKLaboklab(42.31% 0.0023 -0.1955)
OKLCHoklch(42.31% 0.196 270.7)
XYZxyz(10.8935, 6.7400, 44.9737)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C38B6 #B6AA2C
analogous
#2C7DB6 #2C38B6 #652CB6
triadic
#2C38B6 #B62C38 #38B62C
tetradic
#2C38B6 #B62C7D #B6AA2C #2CB665
square
#2C38B6 #B62C7D #B6AA2C #2CB665
split-complementary
#2C38B6 #B6652C #7DB62C
monochromatic
#141A53 #202985 #2C38B6 #4C57D4 #7D85E0

Accessibility & contrast

On white

8.94
#2C38B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2C38B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C38B6
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C38B6#FFFFFF#000000##FFFFFF
##2C38B61.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BA
Deuteranopia (green-blind)
#0043B4
Tritanopia (blue-blind)
#005B72
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2c38b6;
/* rgb */ color: rgb(44, 56, 182);
/* oklch */ color: oklch(42.3% 0.196 270.7);
Tailwind
colors: {
  custom: {
    50: '#7b6fcd',
    500: '#2c38b6',
    950: '#000000',
  },
}
SCSS
$custom: #2c38b6;
$custom-light: #7b6fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c38b6",
  "rgb": {
    "r": 44,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 234.783,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42308,
    "c": 0.19552,
    "h": 270.7
  },
  "luminance": 0.06741
}

Semantic roles & 50–950 ramp

primary
#2C38B6
secondary
#C8C176
accent
#D644E4
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2C38B6

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

Preview Lab → · Contrast checker → · Palette generator →

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