#2B38B2#2B38B2

#2B38B2 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.9% C 0.191 H 270.5°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#2B38B2
RGBrgb(43, 56, 178)
HSLhsl(234, 61%, 43%)
HSVhsv(234, 76%, 70%)
CMYKcmyk(75.8%, 68.5%, 0%, 30.2%)
CIE-LABlab(30.77, 37.88, -65.89)
CIE-LCHlch(30.77, 76.01, 299.89°)
OKLaboklab(41.86% 0.0017 -0.1907)
OKLCHoklch(41.86% 0.191 270.5)
XYZxyz(10.4436, 6.5552, 42.8257)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B38B2 #B2A52B
analogous
#2B7BB2 #2B38B2 #612BB2
triadic
#2B38B2 #B22B38 #38B22B
tetradic
#2B38B2 #B22B7B #B2A52B #2BB261
square
#2B38B2 #B22B7B #B2A52B #2BB261
split-complementary
#2B38B2 #B2612B #7BB22B
monochromatic
#13194F #1F2881 #2B38B2 #4855D3 #7983DF

Accessibility & contrast

On white

9.09
#2B38B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2B38B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B38B2
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B38B2#FFFFFF#000000##FFFFFF
##2B38B21.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b38b2;
/* rgb */ color: rgb(43, 56, 178);
/* oklch */ color: oklch(41.9% 0.191 270.5);
Tailwind
colors: {
  custom: {
    50: '#7a6fca',
    500: '#2b38b2',
    950: '#000000',
  },
}
SCSS
$custom: #2b38b2;
$custom-light: #7a6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#2b38b2",
  "rgb": {
    "r": 43,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 234.222,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.41862,
    "c": 0.1907,
    "h": 270.5
  },
  "luminance": 0.06556
}

Semantic roles & 50–950 ramp

primary
#2B38B2
secondary
#C7BE72
accent
#D544E4
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2B38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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