#2C38AA#2C38AA

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

Color values

HEX#2C38AA
RGBrgb(44, 56, 170)
HSLhsl(234, 59%, 42%)
HSVhsv(234, 74%, 67%)
CMYKcmyk(74.1%, 67.1%, 0%, 33.3%)
CIE-LABlab(30.07, 35.12, -62.26)
CIE-LCHlch(30.07, 71.48, 299.43°)
OKLaboklab(41.14% 0.0035 -0.18)
OKLCHoklch(41.14% 0.18 271.1)
XYZxyz(9.7061, 6.2651, 38.7202)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C38AA #AA9E2C
analogous
#2C77AA #2C38AA #5F2CAA
triadic
#2C38AA #AA2C38 #38AA2C
tetradic
#2C38AA #AA2C77 #AA9E2C #2CAA5F
square
#2C38AA #AA2C77 #AA9E2C #2CAA5F
split-complementary
#2C38AA #AA5F2C #77AA2C
monochromatic
#131849 #1F2879 #2C38AA #4452CF #757FDB

Accessibility & contrast

On white

9.32
#2C38AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2C38AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C38AA
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C38AA#FFFFFF#000000##FFFFFF
##2C38AA1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#0041A8
Tritanopia (blue-blind)
#00566C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2c38aa;
/* rgb */ color: rgb(44, 56, 170);
/* oklch */ color: oklch(41.1% 0.180 271.1);
Tailwind
colors: {
  custom: {
    50: '#786fc4',
    500: '#2c38aa',
    950: '#000000',
  },
}
SCSS
$custom: #2c38aa;
$custom-light: #786fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c38aa",
  "rgb": {
    "r": 44,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 234.286,
    "s": 58.879,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41138,
    "c": 0.18008,
    "h": 271.1
  },
  "luminance": 0.06266
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C38AA

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

Preview Lab → · Contrast checker → · Palette generator →

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