#2D258C#2D258C

#2D258C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.162 H 277.4°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#2D258C
RGBrgb(45, 37, 140)
HSLhsl(245, 58%, 35%)
HSVhsv(245, 74%, 55%)
CMYKcmyk(67.9%, 73.6%, 0%, 45.1%)
CIE-LABlab(22.91, 36.50, -55.70)
CIE-LCHlch(22.91, 66.59, 303.24°)
OKLaboklab(35.11% 0.021 -0.1608)
OKLCHoklch(35.11% 0.162 277.4)
XYZxyz(6.4758, 3.7739, 25.1930)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D258C #848C25
analogous
#25518C #2D258C #60258C
triadic
#2D258C #8C2D25 #258C2D
tetradic
#2D258C #8C2551 #848C25 #258C60
square
#2D258C #8C2551 #848C25 #258C60
split-complementary
#2D258C #8C6025 #518C25
monochromatic
#0E0B2B #1D185C #2D258C #3D32BC #6258D3

Accessibility & contrast

On white

11.97
#2D258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D258C
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D258C#FFFFFF#000000##FFFFFF
##2D258C1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d258c;
/* rgb */ color: rgb(45, 37, 140);
/* oklch */ color: oklch(35.1% 0.162 277.4);
Tailwind
colors: {
  custom: {
    50: '#7461af',
    500: '#2d258c',
    950: '#000000',
  },
}
SCSS
$custom: #2d258c;
$custom-light: #7461af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d258c",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 244.66,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35108,
    "c": 0.16222,
    "h": 277.4
  },
  "luminance": 0.03774
}

Semantic roles & 50–950 ramp

primary
#2D258C
secondary
#B0B855
accent
#E146D5
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D258C

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

Preview Lab → · Contrast checker → · Palette generator →

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