#2B38B1#2B38B1

#2B38B1 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.8% C 0.189 H 270.5°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#2B38B1
RGBrgb(43, 56, 177)
HSLhsl(234, 61%, 43%)
HSVhsv(234, 76%, 69%)
CMYKcmyk(75.7%, 68.4%, 0%, 30.6%)
CIE-LABlab(30.68, 37.52, -65.46)
CIE-LCHlch(30.68, 75.45, 299.82°)
OKLaboklab(41.76% 0.0018 -0.1894)
OKLCHoklch(41.76% 0.189 270.5)
XYZxyz(10.3435, 6.5152, 42.2989)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B38B1 #B1A42B
analogous
#2B7BB1 #2B38B1 #612BB1
triadic
#2B38B1 #B12B38 #38B12B
tetradic
#2B38B1 #B12B7B #B1A42B #2BB161
square
#2B38B1 #B12B7B #B1A42B #2BB161
split-complementary
#2B38B1 #B1612B #7BB12B
monochromatic
#13194F #1F2880 #2B38B1 #4754D2 #7882DE

Accessibility & contrast

On white

9.12
#2B38B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2B38B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B38B1
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B38B1#FFFFFF#000000##FFFFFF
##2B38B11.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#0042AF
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2b38b1;
/* rgb */ color: rgb(43, 56, 177);
/* oklch */ color: oklch(41.8% 0.189 270.5);
Tailwind
colors: {
  custom: {
    50: '#7a6fc9',
    500: '#2b38b1',
    950: '#000000',
  },
}
SCSS
$custom: #2b38b1;
$custom-light: #7a6fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b38b1",
  "rgb": {
    "r": 43,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 234.179,
    "s": 60.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.41764,
    "c": 0.18942,
    "h": 270.5
  },
  "luminance": 0.06516
}

Semantic roles & 50–950 ramp

primary
#2B38B1
secondary
#C6BE72
accent
#D444E4
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2B38B1

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

Preview Lab → · Contrast checker → · Palette generator →

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