#2D258B#2D258B

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

Color values

HEX#2D258B
RGBrgb(45, 37, 139)
HSLhsl(245, 58%, 35%)
HSVhsv(245, 73%, 55%)
CMYKcmyk(67.6%, 73.4%, 0%, 45.5%)
CIE-LABlab(22.81, 36.16, -55.24)
CIE-LCHlch(22.81, 66.02, 303.21°)
OKLaboklab(35% 0.0212 -0.1595)
OKLCHoklch(35% 0.161 277.6)
XYZxyz(6.4024, 3.7446, 24.8065)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D258B #838B25
analogous
#25508B #2D258B #60258B
triadic
#2D258B #8B2D25 #258B2D
tetradic
#2D258B #8B2550 #838B25 #258B60
square
#2D258B #8B2550 #838B25 #258B60
split-complementary
#2D258B #8B6025 #508B25
monochromatic
#0E0B2A #1D185B #2D258B #3D32BB #6258D3

Accessibility & contrast

On white

12.01
#2D258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D258B
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D258B#FFFFFF#000000##FFFFFF
##2D258B1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d258b;
/* rgb */ color: rgb(45, 37, 139);
/* oklch */ color: oklch(35.0% 0.161 277.6);
Tailwind
colors: {
  custom: {
    50: '#7361ae',
    500: '#2d258b',
    950: '#000000',
  },
}
SCSS
$custom: #2d258b;
$custom-light: #7361ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d258b",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 244.706,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35005,
    "c": 0.16091,
    "h": 277.6
  },
  "luminance": 0.03745
}

Semantic roles & 50–950 ramp

primary
#2D258B
secondary
#AFB755
accent
#E147D5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D258B

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

Preview Lab → · Contrast checker → · Palette generator →

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