#2B38B7#2B38B7

#2B38B7 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.4% C 0.197 H 270.3°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#2B38B7
RGBrgb(43, 56, 183)
HSLhsl(234, 62%, 44%)
HSVhsv(234, 77%, 72%)
CMYKcmyk(76.5%, 69.4%, 0%, 28.2%)
CIE-LABlab(31.25, 39.65, -68.07)
CIE-LCHlch(31.25, 78.78, 300.22°)
OKLaboklab(42.36% 0.0012 -0.197)
OKLCHoklch(42.36% 0.197 270.3)
XYZxyz(10.9548, 6.7596, 45.5180)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B38B7 #B7AA2B
analogous
#2B7EB7 #2B38B7 #642BB7
triadic
#2B38B7 #B72B38 #38B72B
tetradic
#2B38B7 #B72B7E #B7AA2B #2BB764
square
#2B38B7 #B72B7E #B7AA2B #2BB764
split-complementary
#2B38B7 #B7642B #7EB72B
monochromatic
#141A54 #1F2985 #2B38B7 #4B57D5 #7C85E0

Accessibility & contrast

On white

8.93
#2B38B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2B38B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B38B7
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B38B7#FFFFFF#000000##FFFFFF
##2B38B71.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#0043B5
Tritanopia (blue-blind)
#005B73
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2b38b7;
/* rgb */ color: rgb(43, 56, 183);
/* oklch */ color: oklch(42.4% 0.197 270.3);
Tailwind
colors: {
  custom: {
    50: '#7b6fce',
    500: '#2b38b7',
    950: '#000000',
  },
}
SCSS
$custom: #2b38b7;
$custom-light: #7b6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#2b38b7",
  "rgb": {
    "r": 43,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 234.429,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42356,
    "c": 0.19705,
    "h": 270.3
  },
  "luminance": 0.06761
}

Semantic roles & 50–950 ramp

primary
#2B38B7
secondary
#C9C175
accent
#D643E5
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2B38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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