#2B38AA#2B38AA

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

Color values

HEX#2B38AA
RGBrgb(43, 56, 170)
HSLhsl(234, 60%, 42%)
HSVhsv(234, 75%, 67%)
CMYKcmyk(74.7%, 67.1%, 0%, 33.3%)
CIE-LABlab(30.02, 35.01, -62.35)
CIE-LCHlch(30.02, 71.51, 299.32°)
OKLaboklab(41.09% 0.0024 -0.1803)
OKLCHoklch(41.09% 0.18 270.8)
XYZxyz(9.6637, 6.2432, 38.7182)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B38AA #AA9D2B
analogous
#2B78AA #2B38AA #5E2BAA
triadic
#2B38AA #AA2B38 #38AA2B
tetradic
#2B38AA #AA2B78 #AA9D2B #2BAA5E
square
#2B38AA #AA2B78 #AA9D2B #2BAA5E
split-complementary
#2B38AA #AA5E2B #78AA2B
monochromatic
#121848 #1F2879 #2B38AA #4351CF #747EDC

Accessibility & contrast

On white

9.34
#2B38AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B38AA
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B38AA#FFFFFF#000000##FFFFFF
##2B38AA1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b38aa;
/* rgb */ color: rgb(43, 56, 170);
/* oklch */ color: oklch(41.1% 0.180 270.8);
Tailwind
colors: {
  custom: {
    50: '#786fc4',
    500: '#2b38aa',
    950: '#000000',
  },
}
SCSS
$custom: #2b38aa;
$custom-light: #786fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b38aa",
  "rgb": {
    "r": 43,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 233.858,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41085,
    "c": 0.18036,
    "h": 270.8
  },
  "luminance": 0.06244
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B38AA

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

Preview Lab → · Contrast checker → · Palette generator →

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