#2B258C#2B258C

#2B258C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.163 H 276.5°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#2B258C
RGBrgb(43, 37, 140)
HSLhsl(243, 58%, 35%)
HSVhsv(243, 74%, 55%)
CMYKcmyk(69.3%, 73.6%, 0%, 45.1%)
CIE-LABlab(22.76, 36.25, -55.95)
CIE-LCHlch(22.76, 66.67, 302.94°)
OKLaboklab(34.96% 0.0183 -0.1616)
OKLCHoklch(34.96% 0.163 276.5)
XYZxyz(6.3899, 3.7296, 25.1890)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B258C #868C25
analogous
#25538C #2B258C #5F258C
triadic
#2B258C #8C2B25 #258C2B
tetradic
#2B258C #8C2553 #868C25 #258C5F
square
#2B258C #8C2553 #868C25 #258C5F
split-complementary
#2B258C #8C5F25 #538C25
monochromatic
#0D0B2B #1C185C #2B258C #3A32BC #6058D3

Accessibility & contrast

On white

12.03
#2B258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2B258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B258C
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B258C#FFFFFF#000000##FFFFFF
##2B258C1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b258c;
/* rgb */ color: rgb(43, 37, 140);
/* oklch */ color: oklch(35.0% 0.163 276.5);
Tailwind
colors: {
  custom: {
    50: '#7361af',
    500: '#2b258c',
    950: '#000000',
  },
}
SCSS
$custom: #2b258c;
$custom-light: #7361af;
$custom-dark: #000000;
JSON
{
  "hex": "#2b258c",
  "rgb": {
    "r": 43,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 243.495,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34959,
    "c": 0.16268,
    "h": 276.5
  },
  "luminance": 0.0373
}

Semantic roles & 50–950 ramp

primary
#2B258C
secondary
#B2B855
accent
#E146D8
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2B258C

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

Preview Lab → · Contrast checker → · Palette generator →

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