#2B39A1#2B39A1

#2B39A1 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.4% C 0.167 H 270.8°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#2B39A1
RGBrgb(43, 57, 161)
HSLhsl(233, 58%, 40%)
HSVhsv(233, 73%, 63%)
CMYKcmyk(73.3%, 64.6%, 0%, 36.9%)
CIE-LABlab(29.44, 31.09, -57.87)
CIE-LCHlch(29.44, 65.69, 298.25°)
OKLaboklab(40.41% 0.0024 -0.1672)
OKLCHoklch(40.41% 0.167 270.8)
XYZxyz(8.8902, 6.0121, 34.4032)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B39A1 #A1932B
analogous
#2B74A1 #2B39A1 #582BA1
triadic
#2B39A1 #A12B39 #39A12B
tetradic
#2B39A1 #A12B74 #A1932B #2BA158
square
#2B39A1 #A12B74 #A1932B #2BA158
split-complementary
#2B39A1 #A1582B #74A12B
monochromatic
#111740 #1E2871 #2B39A1 #3E4FCB #6E7BD8

Accessibility & contrast

On white

9.53
#2B39A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2B39A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B39A1
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B39A1#FFFFFF#000000##FFFFFF
##2B39A11.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#00409F
Tritanopia (blue-blind)
#005467
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2b39a1;
/* rgb */ color: rgb(43, 57, 161);
/* oklch */ color: oklch(40.4% 0.167 270.8);
Tailwind
colors: {
  custom: {
    50: '#766fbe',
    500: '#2b39a1',
    950: '#000000',
  },
}
SCSS
$custom: #2b39a1;
$custom-light: #766fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2b39a1",
  "rgb": {
    "r": 43,
    "g": 57,
    "b": 161
  },
  "hsl": {
    "h": 232.881,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.40413,
    "c": 0.16723,
    "h": 270.8
  },
  "luminance": 0.06013
}

Semantic roles & 50–950 ramp

primary
#2B39A1
secondary
#BFB569
accent
#CF47E1
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2B39A1

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

Preview Lab → · Contrast checker → · Palette generator →

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