#2C38B5#2C38B5

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

Color values

HEX#2C38B5
RGBrgb(44, 56, 181)
HSLhsl(235, 61%, 44%)
HSVhsv(235, 76%, 71%)
CMYKcmyk(75.7%, 69.1%, 0%, 29%)
CIE-LABlab(31.11, 39.04, -67.12)
CIE-LCHlch(31.11, 77.65, 300.18°)
OKLaboklab(42.21% 0.0024 -0.1942)
OKLCHoklch(42.21% 0.194 270.7)
XYZxyz(10.7905, 6.6989, 44.4314)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C38B5 #B5A92C
analogous
#2C7CB5 #2C38B5 #652CB5
triadic
#2C38B5 #B52C38 #38B52C
tetradic
#2C38B5 #B52C7C #B5A92C #2CB565
square
#2C38B5 #B52C7C #B5A92C #2CB565
split-complementary
#2C38B5 #B5652C #7CB52C
monochromatic
#141A53 #202984 #2C38B5 #4B57D3 #7C85DF

Accessibility & contrast

On white

8.97
#2C38B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2C38B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C38B5
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C38B5#FFFFFF#000000##FFFFFF
##2C38B51.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#0043B3
Tritanopia (blue-blind)
#005A72
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2c38b5;
/* rgb */ color: rgb(44, 56, 181);
/* oklch */ color: oklch(42.2% 0.194 270.7);
Tailwind
colors: {
  custom: {
    50: '#7b6fcc',
    500: '#2c38b5',
    950: '#000000',
  },
}
SCSS
$custom: #2c38b5;
$custom-light: #7b6fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c38b5",
  "rgb": {
    "r": 44,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 234.745,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42209,
    "c": 0.19426,
    "h": 270.7
  },
  "luminance": 0.067
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C38B5

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

Preview Lab → · Contrast checker → · Palette generator →

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