#2B38B5#2B38B5

#2B38B5 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.2% C 0.195 H 270.4°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#2B38B5
RGBrgb(43, 56, 181)
HSLhsl(234, 62%, 44%)
HSVhsv(234, 76%, 71%)
CMYKcmyk(76.2%, 69.1%, 0%, 29%)
CIE-LABlab(31.06, 38.94, -67.20)
CIE-LCHlch(31.06, 77.67, 300.09°)
OKLaboklab(42.16% 0.0014 -0.1945)
OKLCHoklch(42.16% 0.195 270.4)
XYZxyz(10.7481, 6.6770, 44.4294)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B38B5 #B5A82B
analogous
#2B7DB5 #2B38B5 #632BB5
triadic
#2B38B5 #B52B38 #38B52B
tetradic
#2B38B5 #B52B7D #B5A82B #2BB563
square
#2B38B5 #B52B7D #B5A82B #2BB563
split-complementary
#2B38B5 #B5632B #7DB52B
monochromatic
#141952 #1F2984 #2B38B5 #4956D4 #7B84E0

Accessibility & contrast

On white

8.99
#2B38B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2B38B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B38B5
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B38B5#FFFFFF#000000##FFFFFF
##2B38B51.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#0042B3
Tritanopia (blue-blind)
#005A72
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2b38b5;
/* rgb */ color: rgb(43, 56, 181);
/* oklch */ color: oklch(42.2% 0.195 270.4);
Tailwind
colors: {
  custom: {
    50: '#7b6fcc',
    500: '#2b38b5',
    950: '#000000',
  },
}
SCSS
$custom: #2b38b5;
$custom-light: #7b6fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2b38b5",
  "rgb": {
    "r": 43,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 234.348,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42158,
    "c": 0.19453,
    "h": 270.4
  },
  "luminance": 0.06678
}

Semantic roles & 50–950 ramp

primary
#2B38B5
secondary
#C8C074
accent
#D543E5
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2B38B5

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

Preview Lab → · Contrast checker → · Palette generator →

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