#2D258A#2D258A

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

Color values

HEX#2D258A
RGBrgb(45, 37, 138)
HSLhsl(245, 58%, 34%)
HSVhsv(245, 73%, 54%)
CMYKcmyk(67.4%, 73.2%, 0%, 45.9%)
CIE-LABlab(22.71, 35.82, -54.78)
CIE-LCHlch(22.71, 65.46, 303.18°)
OKLaboklab(34.9% 0.0214 -0.1582)
OKLCHoklch(34.9% 0.16 277.7)
XYZxyz(6.3297, 3.7155, 24.4234)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D258A #828A25
analogous
#25508A #2D258A #5F258A
triadic
#2D258A #8A2D25 #258A2D
tetradic
#2D258A #8A2550 #828A25 #258A5F
square
#2D258A #8A2550 #828A25 #258A5F
split-complementary
#2D258A #8A5F25 #508A25
monochromatic
#0E0B29 #1D185A #2D258A #3D32BA #6157D2

Accessibility & contrast

On white

12.05
#2D258A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D258A
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D258A#FFFFFF#000000##FFFFFF
##2D258A1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d258a;
/* rgb */ color: rgb(45, 37, 138);
/* oklch */ color: oklch(34.9% 0.160 277.7);
Tailwind
colors: {
  custom: {
    50: '#7361ad',
    500: '#2d258a',
    950: '#000000',
  },
}
SCSS
$custom: #2d258a;
$custom-light: #7361ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d258a",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 244.752,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34903,
    "c": 0.15961,
    "h": 277.7
  },
  "luminance": 0.03716
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D258A

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

Preview Lab → · Contrast checker → · Palette generator →

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