#2B38B8#2B38B8

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

Color values

HEX#2B38B8
RGBrgb(43, 56, 184)
HSLhsl(234, 62%, 45%)
HSVhsv(234, 77%, 72%)
CMYKcmyk(76.6%, 69.6%, 0%, 27.8%)
CIE-LABlab(31.35, 40.00, -68.51)
CIE-LCHlch(31.35, 79.33, 300.28°)
OKLaboklab(42.46% 0.0011 -0.1983)
OKLCHoklch(42.46% 0.198 270.3)
XYZxyz(11.0592, 6.8014, 46.0681)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B38B8 #B8AB2B
analogous
#2B7FB8 #2B38B8 #652BB8
triadic
#2B38B8 #B82B38 #38B82B
tetradic
#2B38B8 #B82B7F #B8AB2B #2BB865
square
#2B38B8 #B82B7F #B8AB2B #2BB865
split-complementary
#2B38B8 #B8652B #7FB82B
monochromatic
#141A55 #1F2986 #2B38B8 #4B58D5 #7D86E1

Accessibility & contrast

On white

8.90
#2B38B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2B38B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B38B8
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B38B8#FFFFFF#000000##FFFFFF
##2B38B81.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#0043B6
Tritanopia (blue-blind)
#005B74
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2b38b8;
/* rgb */ color: rgb(43, 56, 184);
/* oklch */ color: oklch(42.5% 0.198 270.3);
Tailwind
colors: {
  custom: {
    50: '#7b6fce',
    500: '#2b38b8',
    950: '#000000',
  },
}
SCSS
$custom: #2b38b8;
$custom-light: #7b6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#2b38b8",
  "rgb": {
    "r": 43,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 234.468,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42456,
    "c": 0.19831,
    "h": 270.3
  },
  "luminance": 0.06803
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B38B8

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

Preview Lab → · Contrast checker → · Palette generator →

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