#2C38B1#2C38B1

#2C38B1 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.8% C 0.189 H 270.9°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#2C38B1
RGBrgb(44, 56, 177)
HSLhsl(235, 60%, 43%)
HSVhsv(235, 75%, 69%)
CMYKcmyk(75.1%, 68.4%, 0%, 30.6%)
CIE-LABlab(30.73, 37.62, -65.37)
CIE-LCHlch(30.73, 75.42, 299.92°)
OKLaboklab(41.82% 0.0028 -0.1891)
OKLCHoklch(41.82% 0.189 270.9)
XYZxyz(10.3860, 6.5370, 42.3009)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C38B1 #B1A52C
analogous
#2C7BB1 #2C38B1 #622CB1
triadic
#2C38B1 #B12C38 #38B12C
tetradic
#2C38B1 #B12C7B #B1A52C #2CB162
square
#2C38B1 #B12C7B #B1A52C #2CB162
split-complementary
#2C38B1 #B1622C #7BB12C
monochromatic
#14194F #202880 #2C38B1 #4955D2 #7A83DE

Accessibility & contrast

On white

9.10
#2C38B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2C38B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C38B1
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C38B1#FFFFFF#000000##FFFFFF
##2C38B11.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#0042AF
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2c38b1;
/* rgb */ color: rgb(44, 56, 177);
/* oklch */ color: oklch(41.8% 0.189 270.9);
Tailwind
colors: {
  custom: {
    50: '#7a6fc9',
    500: '#2c38b1',
    950: '#000000',
  },
}
SCSS
$custom: #2c38b1;
$custom-light: #7a6fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c38b1",
  "rgb": {
    "r": 44,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 234.586,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.41816,
    "c": 0.18915,
    "h": 270.9
  },
  "luminance": 0.06538
}

Semantic roles & 50–950 ramp

primary
#2C38B1
secondary
#C6BE73
accent
#D544E3
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2C38B1

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

Preview Lab → · Contrast checker → · Palette generator →

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