#2B2895#2B2895

#2B2895 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.171 H 275.0°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#2B2895
RGBrgb(43, 40, 149)
HSLhsl(242, 58%, 37%)
HSVhsv(242, 73%, 58%)
CMYKcmyk(71.1%, 73.2%, 0%, 41.6%)
CIE-LABlab(24.32, 37.54, -58.95)
CIE-LCHlch(24.32, 69.89, 302.49°)
OKLaboklab(36.35% 0.0148 -0.1704)
OKLCHoklch(36.35% 0.171 275)
XYZxyz(7.1781, 4.2004, 28.8604)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2895 #929528
analogous
#285C95 #2B2895 #612895
triadic
#2B2895 #952B28 #28952B
tetradic
#2B2895 #95285C #929528 #289561
square
#2B2895 #95285C #929528 #289561
split-complementary
#2B2895 #956128 #5C9528
monochromatic
#0F0E35 #1D1B65 #2B2895 #3935C5 #6662D5

Accessibility & contrast

On white

11.41
#2B2895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2B2895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2895
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2895#FFFFFF#000000##FFFFFF
##2B28951.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#003593
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b2895;
/* rgb */ color: rgb(43, 40, 149);
/* oklch */ color: oklch(36.4% 0.171 275.0);
Tailwind
colors: {
  custom: {
    50: '#7563b5',
    500: '#2b2895',
    950: '#000000',
  },
}
SCSS
$custom: #2b2895;
$custom-light: #7563b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2895",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 241.651,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36355,
    "c": 0.17105,
    "h": 275
  },
  "luminance": 0.04201
}

Semantic roles & 50–950 ramp

primary
#2B2895
secondary
#B8BB5E
accent
#E147DD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2B2895

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

Preview Lab → · Contrast checker → · Palette generator →

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