#2B258B#2B258B

#2B258B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.161 H 276.6°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#2B258B
RGBrgb(43, 37, 139)
HSLhsl(244, 58%, 35%)
HSVhsv(244, 73%, 55%)
CMYKcmyk(69.1%, 73.4%, 0%, 45.5%)
CIE-LABlab(22.65, 35.91, -55.50)
CIE-LCHlch(22.65, 66.11, 302.91°)
OKLaboklab(34.86% 0.0185 -0.1603)
OKLCHoklch(34.86% 0.161 276.6)
XYZxyz(6.3165, 3.7002, 24.8024)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B258B #858B25
analogous
#25528B #2B258B #5E258B
triadic
#2B258B #8B2B25 #258B2B
tetradic
#2B258B #8B2552 #858B25 #258B5E
square
#2B258B #8B2552 #858B25 #258B5E
split-complementary
#2B258B #8B5E25 #528B25
monochromatic
#0D0B2A #1C185B #2B258B #3A32BB #5F58D3

Accessibility & contrast

On white

12.07
#2B258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2B258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B258B
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B258B#FFFFFF#000000##FFFFFF
##2B258B1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b258b;
/* rgb */ color: rgb(43, 37, 139);
/* oklch */ color: oklch(34.9% 0.161 276.6);
Tailwind
colors: {
  custom: {
    50: '#7361ae',
    500: '#2b258b',
    950: '#000000',
  },
}
SCSS
$custom: #2b258b;
$custom-light: #7361ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b258b",
  "rgb": {
    "r": 43,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 243.529,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34856,
    "c": 0.16138,
    "h": 276.6
  },
  "luminance": 0.03701
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B258B

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

Preview Lab → · Contrast checker → · Palette generator →

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