#2C38B8#2C38B8

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

Color values

HEX#2C38B8
RGBrgb(44, 56, 184)
HSLhsl(235, 61%, 45%)
HSVhsv(235, 76%, 72%)
CMYKcmyk(76.1%, 69.6%, 0%, 27.8%)
CIE-LABlab(31.40, 40.10, -68.42)
CIE-LCHlch(31.40, 79.30, 300.37°)
OKLaboklab(42.51% 0.0021 -0.198)
OKLCHoklch(42.51% 0.198 270.6)
XYZxyz(11.1017, 6.8233, 46.0700)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C38B8 #B8AC2C
analogous
#2C7EB8 #2C38B8 #662CB8
triadic
#2C38B8 #B82C38 #38B82C
tetradic
#2C38B8 #B82C7E #B8AC2C #2CB866
square
#2C38B8 #B82C7E #B8AC2C #2CB866
split-complementary
#2C38B8 #B8662C #7EB82C
monochromatic
#141A55 #202987 #2C38B8 #4D58D4 #7E87E0

Accessibility & contrast

On white

8.88
#2C38B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C38B8
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C38B8#FFFFFF#000000##FFFFFF
##2C38B81.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#0043B6
Tritanopia (blue-blind)
#005B74
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2c38b8;
/* rgb */ color: rgb(44, 56, 184);
/* oklch */ color: oklch(42.5% 0.198 270.6);
Tailwind
colors: {
  custom: {
    50: '#7c6fce',
    500: '#2c38b8',
    950: '#000000',
  },
}
SCSS
$custom: #2c38b8;
$custom-light: #7c6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#2c38b8",
  "rgb": {
    "r": 44,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 234.857,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42506,
    "c": 0.19805,
    "h": 270.6
  },
  "luminance": 0.06825
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C38B8

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

Preview Lab → · Contrast checker → · Palette generator →

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