#2B38AC#2B38AC

#2B38AC is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.3% C 0.183 H 270.7°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#2B38AC
RGBrgb(43, 56, 172)
HSLhsl(234, 60%, 42%)
HSVhsv(234, 75%, 67%)
CMYKcmyk(75%, 67.4%, 0%, 32.5%)
CIE-LABlab(30.20, 35.73, -63.24)
CIE-LCHlch(30.20, 72.64, 299.47°)
OKLaboklab(41.28% 0.0023 -0.1829)
OKLCHoklch(41.28% 0.183 270.7)
XYZxyz(9.8543, 6.3195, 39.7222)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B38AC #AC9F2B
analogous
#2B79AC #2B38AC #5E2BAC
triadic
#2B38AC #AC2B38 #38AC2B
tetradic
#2B38AC #AC2B79 #AC9F2B #2BAC5E
square
#2B38AC #AC2B79 #AC9F2B #2BAC5E
split-complementary
#2B38AC #AC5E2B #79AC2B
monochromatic
#13184A #1F287B #2B38AC #4452D0 #757FDC

Accessibility & contrast

On white

9.28
#2B38AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B38AC
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B38AC#FFFFFF#000000##FFFFFF
##2B38AC1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#0041AA
Tritanopia (blue-blind)
#00576D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2b38ac;
/* rgb */ color: rgb(43, 56, 172);
/* oklch */ color: oklch(41.3% 0.183 270.7);
Tailwind
colors: {
  custom: {
    50: '#796fc6',
    500: '#2b38ac',
    950: '#000000',
  },
}
SCSS
$custom: #2b38ac;
$custom-light: #796fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b38ac",
  "rgb": {
    "r": 43,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 233.953,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41278,
    "c": 0.18296,
    "h": 270.7
  },
  "luminance": 0.0632
}

Semantic roles & 50–950 ramp

primary
#2B38AC
secondary
#C4BB6F
accent
#D345E3
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2B38AC

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

Preview Lab → · Contrast checker → · Palette generator →

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