#2B38AB#2B38AB

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

Color values

HEX#2B38AB
RGBrgb(43, 56, 171)
HSLhsl(234, 60%, 42%)
HSVhsv(234, 75%, 67%)
CMYKcmyk(74.9%, 67.3%, 0%, 32.9%)
CIE-LABlab(30.11, 35.37, -62.80)
CIE-LCHlch(30.11, 72.08, 299.39°)
OKLaboklab(41.18% 0.0023 -0.1816)
OKLCHoklch(41.18% 0.182 270.7)
XYZxyz(9.7586, 6.2812, 39.2183)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B38AB #AB9E2B
analogous
#2B78AB #2B38AB #5E2BAB
triadic
#2B38AB #AB2B38 #38AB2B
tetradic
#2B38AB #AB2B78 #AB9E2B #2BAB5E
square
#2B38AB #AB2B78 #AB9E2B #2BAB5E
split-complementary
#2B38AB #AB5E2B #78AB2B
monochromatic
#121849 #1F287A #2B38AB #4352D0 #747FDC

Accessibility & contrast

On white

9.31
#2B38AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B38AB
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B38AB#FFFFFF#000000##FFFFFF
##2B38AB1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.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: #2b38ab;
/* rgb */ color: rgb(43, 56, 171);
/* oklch */ color: oklch(41.2% 0.182 270.7);
Tailwind
colors: {
  custom: {
    50: '#786fc5',
    500: '#2b38ab',
    950: '#000000',
  },
}
SCSS
$custom: #2b38ab;
$custom-light: #786fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b38ab",
  "rgb": {
    "r": 43,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 233.906,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41181,
    "c": 0.18165,
    "h": 270.7
  },
  "luminance": 0.06282
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B38AB

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

Preview Lab → · Contrast checker → · Palette generator →

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