#2B38C4#2B38C4

#2B38C4 is a dark, highly saturated blue. Relative luminance 0.073; OKLCH L 43.7% C 0.213 H 269.9°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#2B38C4
RGBrgb(43, 56, 196)
HSLhsl(235, 64%, 47%)
HSVhsv(235, 78%, 77%)
CMYKcmyk(78.1%, 71.4%, 0%, 23.1%)
CIE-LABlab(32.54, 44.17, -73.62)
CIE-LCHlch(32.54, 85.85, 300.97°)
OKLaboklab(43.67% -0.0003 -0.2132)
OKLCHoklch(43.67% 0.213 269.9)
XYZxyz(12.3708, 7.3261, 52.9759)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B38C4 #C4B72B
analogous
#2B85C4 #2B38C4 #6B2BC4
triadic
#2B38C4 #C42B38 #38C42B
tetradic
#2B38C4 #C42B85 #C4B72B #2BC46B
square
#2B38C4 #C42B85 #C4B72B #2BC46B
split-complementary
#2B38C4 #C46B2B #85C42B
monochromatic
#151B60 #202A92 #2B38C4 #535ED9 #858DE4

Accessibility & contrast

On white

8.52
#2B38C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2B38C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B38C4
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B38C4#FFFFFF#000000##FFFFFF
##2B38C41.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C8
Deuteranopia (green-blind)
#0045C1
Tritanopia (blue-blind)
#00607A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2b38c4;
/* rgb */ color: rgb(43, 56, 196);
/* oklch */ color: oklch(43.7% 0.213 269.9);
Tailwind
colors: {
  custom: {
    50: '#7e6fd7',
    500: '#2b38c4',
    950: '#000000',
  },
}
SCSS
$custom: #2b38c4;
$custom-light: #7e6fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b38c4",
  "rgb": {
    "r": 43,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 234.902,
    "s": 64.017,
    "l": 46.863
  },
  "oklch": {
    "l": 0.43668,
    "c": 0.2132,
    "h": 269.9
  },
  "luminance": 0.07327
}

Semantic roles & 50–950 ramp

primary
#2B38C4
secondary
#CEC77D
accent
#D941E7
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #2B38C4

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

Preview Lab → · Contrast checker → · Palette generator →

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