#2C38AB#2C38AB

#2C38AB is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.2% C 0.181 H 271.1°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#2C38AB
RGBrgb(44, 56, 171)
HSLhsl(234, 59%, 42%)
HSVhsv(234, 74%, 67%)
CMYKcmyk(74.3%, 67.3%, 0%, 32.9%)
CIE-LABlab(30.16, 35.48, -62.71)
CIE-LCHlch(30.16, 72.05, 299.50°)
OKLaboklab(41.23% 0.0034 -0.1814)
OKLCHoklch(41.23% 0.181 271.1)
XYZxyz(9.8011, 6.3031, 39.2203)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C38AB #AB9F2C
analogous
#2C77AB #2C38AB #602CAB
triadic
#2C38AB #AB2C38 #38AB2C
tetradic
#2C38AB #AB2C77 #AB9F2C #2CAB60
square
#2C38AB #AB2C77 #AB9F2C #2CAB60
split-complementary
#2C38AB #AB602C #77AB2C
monochromatic
#13184A #1F287A #2C38AB #4552CF #767FDC

Accessibility & contrast

On white

9.29
#2C38AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2C38AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C38AB
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C38AB#FFFFFF#000000##FFFFFF
##2C38AB1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#0041A9
Tritanopia (blue-blind)
#00576C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2c38ab;
/* rgb */ color: rgb(44, 56, 171);
/* oklch */ color: oklch(41.2% 0.181 271.1);
Tailwind
colors: {
  custom: {
    50: '#796fc5',
    500: '#2c38ab',
    950: '#000000',
  },
}
SCSS
$custom: #2c38ab;
$custom-light: #796fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c38ab",
  "rgb": {
    "r": 44,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 234.331,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41234,
    "c": 0.18139,
    "h": 271.1
  },
  "luminance": 0.06304
}

Semantic roles & 50–950 ramp

primary
#2C38AB
secondary
#C3BB6F
accent
#D346E2
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2C38AB

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

Preview Lab → · Contrast checker → · Palette generator →

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