#2B258A#2B258A

#2B258A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.160 H 276.7°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#2B258A
RGBrgb(43, 37, 138)
HSLhsl(244, 58%, 34%)
HSVhsv(244, 73%, 54%)
CMYKcmyk(68.8%, 73.2%, 0%, 45.9%)
CIE-LABlab(22.55, 35.57, -55.04)
CIE-LCHlch(22.55, 65.53, 302.87°)
OKLaboklab(34.75% 0.0187 -0.159)
OKLCHoklch(34.75% 0.16 276.7)
XYZxyz(6.2438, 3.6712, 24.4194)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B258A #848A25
analogous
#25528A #2B258A #5E258A
triadic
#2B258A #8A2B25 #258A2B
tetradic
#2B258A #8A2552 #848A25 #258A5E
square
#2B258A #8A2552 #848A25 #258A5E
split-complementary
#2B258A #8A5E25 #528A25
monochromatic
#0D0B29 #1C185A #2B258A #3A32BA #5F57D2

Accessibility & contrast

On white

12.11
#2B258A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2B258A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B258A
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B258A#FFFFFF#000000##FFFFFF
##2B258A1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b258a;
/* rgb */ color: rgb(43, 37, 138);
/* oklch */ color: oklch(34.8% 0.160 276.7);
Tailwind
colors: {
  custom: {
    50: '#7261ad',
    500: '#2b258a',
    950: '#000000',
  },
}
SCSS
$custom: #2b258a;
$custom-light: #7261ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b258a",
  "rgb": {
    "r": 43,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 243.564,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34753,
    "c": 0.16008,
    "h": 276.7
  },
  "luminance": 0.03672
}

Semantic roles & 50–950 ramp

primary
#2B258A
secondary
#B1B754
accent
#E147D8
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2B258A

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

Preview Lab → · Contrast checker → · Palette generator →

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