#2C38B7#2C38B7

#2C38B7 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.4% C 0.197 H 270.6°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#2C38B7
RGBrgb(44, 56, 183)
HSLhsl(235, 61%, 45%)
HSVhsv(235, 76%, 72%)
CMYKcmyk(76%, 69.4%, 0%, 28.2%)
CIE-LABlab(31.30, 39.74, -67.99)
CIE-LCHlch(31.30, 78.75, 300.31°)
OKLaboklab(42.41% 0.0022 -0.1968)
OKLCHoklch(42.41% 0.197 270.6)
XYZxyz(10.9972, 6.7815, 45.5199)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C38B7 #B7AB2C
analogous
#2C7EB7 #2C38B7 #662CB7
triadic
#2C38B7 #B72C38 #38B72C
tetradic
#2C38B7 #B72C7E #B7AB2C #2CB766
square
#2C38B7 #B72C7E #B7AB2C #2CB766
split-complementary
#2C38B7 #B7662C #7EB72C
monochromatic
#141A54 #202986 #2C38B7 #4C58D4 #7E86E0

Accessibility & contrast

On white

8.91
#2C38B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2C38B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C38B7
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C38B7#FFFFFF#000000##FFFFFF
##2C38B71.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#0043B5
Tritanopia (blue-blind)
#005B73
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2c38b7;
/* rgb */ color: rgb(44, 56, 183);
/* oklch */ color: oklch(42.4% 0.197 270.6);
Tailwind
colors: {
  custom: {
    50: '#7c6fce',
    500: '#2c38b7',
    950: '#000000',
  },
}
SCSS
$custom: #2c38b7;
$custom-light: #7c6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#2c38b7",
  "rgb": {
    "r": 44,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 234.82,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42407,
    "c": 0.19679,
    "h": 270.6
  },
  "luminance": 0.06783
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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