#2B38B4#2B38B4

#2B38B4 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.1% C 0.193 H 270.4°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#2B38B4
RGBrgb(43, 56, 180)
HSLhsl(234, 61%, 44%)
HSVhsv(234, 76%, 71%)
CMYKcmyk(76.1%, 68.9%, 0%, 29.4%)
CIE-LABlab(30.96, 38.59, -66.77)
CIE-LCHlch(30.96, 77.12, 300.03°)
OKLaboklab(42.06% 0.0015 -0.1932)
OKLCHoklch(42.06% 0.193 270.4)
XYZxyz(10.6458, 6.6361, 43.8910)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B38B4 #B4A72B
analogous
#2B7CB4 #2B38B4 #622BB4
triadic
#2B38B4 #B42B38 #38B42B
tetradic
#2B38B4 #B42B7C #B4A72B #2BB462
square
#2B38B4 #B42B7C #B4A72B #2BB462
split-complementary
#2B38B4 #B4622B #7CB42B
monochromatic
#131951 #1F2983 #2B38B4 #4956D3 #7A84DF

Accessibility & contrast

On white

9.02
#2B38B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2B38B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B38B4
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B38B4#FFFFFF#000000##FFFFFF
##2B38B41.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#0042B2
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2b38b4;
/* rgb */ color: rgb(43, 56, 180);
/* oklch */ color: oklch(42.1% 0.193 270.4);
Tailwind
colors: {
  custom: {
    50: '#7b6fcc',
    500: '#2b38b4',
    950: '#000000',
  },
}
SCSS
$custom: #2b38b4;
$custom-light: #7b6fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2b38b4",
  "rgb": {
    "r": 43,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 234.307,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42059,
    "c": 0.19325,
    "h": 270.4
  },
  "luminance": 0.06637
}

Semantic roles & 50–950 ramp

primary
#2B38B4
secondary
#C7BF73
accent
#D543E5
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2B38B4

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

Preview Lab → · Contrast checker → · Palette generator →

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