#2B2B9E#2B2B9E

#2B2B9E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.179 H 273.7°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#2B2B9E
RGBrgb(43, 43, 158)
HSLhsl(240, 57%, 39%)
HSVhsv(240, 73%, 62%)
CMYKcmyk(72.8%, 72.8%, 0%, 38%)
CIE-LABlab(25.89, 38.83, -61.88)
CIE-LCHlch(25.89, 73.06, 302.11°)
OKLaboklab(37.75% 0.0115 -0.179)
OKLCHoklch(37.75% 0.179 273.7)
XYZxyz(8.0296, 4.7092, 32.8269)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2B9E #9E9E2B
analogous
#2B659E #2B2B9E #652B9E
triadic
#2B2B9E #9E2B2B #2B9E2B
tetradic
#2B2B9E #9E2B65 #9E9E2B #2B9E65
square
#2B2B9E #9E2B65 #9E9E2B #2B9E65
split-complementary
#2B2B9E #9E652B #659E2B
monochromatic
#11113E #1E1E6E #2B2B9E #3C3CCA #6C6CD7

Accessibility & contrast

On white

10.81
#2B2B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2B2B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2B9E
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2B9E#FFFFFF#000000##FFFFFF
##2B2B9E1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00389C
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2b2b9e;
/* rgb */ color: rgb(43, 43, 158);
/* oklch */ color: oklch(37.8% 0.179 273.7);
Tailwind
colors: {
  custom: {
    50: '#7665bc',
    500: '#2b2b9e',
    950: '#000000',
  },
}
SCSS
$custom: #2b2b9e;
$custom-light: #7665bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2b9e",
  "rgb": {
    "r": 43,
    "g": 43,
    "b": 158
  },
  "hsl": {
    "h": 240,
    "s": 57.214,
    "l": 39.412
  },
  "oklch": {
    "l": 0.3775,
    "c": 0.17935,
    "h": 273.7
  },
  "luminance": 0.0471
}

Semantic roles & 50–950 ramp

primary
#2B2B9E
secondary
#BEBE67
accent
#E047E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B2B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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